Google Cloud CLI (gcloud) · Compute Engine

Copy a file to a VM

Copy a local file to an instance.

gcloud compute scp ./file.txt my-vm:~/ --zone us-central1-a

Official Google Cloud CLI (gcloud) documentation

More compute engine commands

All compute engine commands · Google Cloud CLI (gcloud) cheatsheet

Was this page helpful?