Skip to content

Instantly share code, notes, and snippets.

@motss
Created September 6, 2016 07:33
Show Gist options
  • Save motss/d898cc7a02ff5b1abd4a2ce787cf7a69 to your computer and use it in GitHub Desktop.
Save motss/d898cc7a02ff5b1abd4a2ce787cf7a69 to your computer and use it in GitHub Desktop.
Google Cloud commands
// To init.
gcloud init
// To list all the compute instances.
gcloud compute instances list
// gcloud compute instances list | grep <instance_name>
// To ssh the instance.
gcloud compute ssh <machine_name>@<instance_name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment