Skip to content

Instantly share code, notes, and snippets.

@supriya-premkumar
Last active February 1, 2018 19:51
Show Gist options
  • Save supriya-premkumar/86f8c282c41a4ec1edbac5232c0bfd82 to your computer and use it in GitHub Desktop.
Save supriya-premkumar/86f8c282c41a4ec1edbac5232c0bfd82 to your computer and use it in GitHub Desktop.
GCP-CLI.md

Connect to the remote VM
gcloud compute --project "<Project-Name>" ssh --zone "us-central1-a" "<Instance-Name>"

Copy a file from local to remote VM
gcloud compute scp ~/Desktop/test.csv datacommons:~/REMOTE-DIR --zone us-central1-a

Copy a folder from local to remote VM
gcloud compute scp --recurse ~/test <Instance-Name>:~/ --zone us-central1-a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment