gcloud beta app instances scp Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta app instances scp - SCP from or to the VM of an App Engine Flexible environment instance
- SYNOPSIS
gcloud beta app instances scp[INSTANCE:]SRC[[INSTANCE:]SRC…][INSTANCE:]DEST[--compress][--recurse][--service=SERVICE][--tunnel-through-iap][--version=VERSION][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)gcloud beta app instances scplets you remotelycopy files to or from an App Engine Flexible environment instance.gcloud beta app instances scpresolves the instance's IP addressand pre-populates the VM with a public key managed by gcloud. If the gcloudmanaged key pair does not exist, it is generated the first time an SSH commandis run, which may prompt you for a passphrase for the private key encryption.All SSH commands require the OpenSSH client suite to be installed on Linux andMac OS X. On Windows, the Google Cloud CLI comes with a bundled PuTTY suiteinstead, so it has no external dependencies.
- EXAMPLES
- To copy one file from a remote instance to the local machine, run:
gcloudbetaappinstancesscp--service=s1--version=v1i1:remote_filelocal_fileTo copy several local files to a remote instance, run:
gcloudbetaappinstancesscp--service=s1--version=v1local_1local_1i1:remote_dirTo use recursive copy, run:
gcloudbetaappinstancesscp--service=s1--version=v1--recurselocal_diri1:remote_dir - POSITIONAL ARGUMENTS
- [
INSTANCE:]SRC[[INSTANCE:]SRC…] - Specifies the files to copy.
- [
INSTANCE:]DEST - Specifies a destination for the source files.
- [
- FLAGS
--compress- Enable compression.
--recurse- Upload directories recursively.
--service=SERVICE- The service ID.
--tunnel-through-iap- Tunnel the ssh connection through Identity-Aware Proxy for TCP forwarding.
To learn more, see theIAP for TCPforwarding documentation.
--version=VERSION- The version ID.
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - NOTES
- This command is currently in beta and might change without notice. This variantis also available:
gcloudappinstancesscp
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.