Loading tool…
cheatsheet
gcloud initInitialize gcloud CLI (select project, zone, etc.)
gcloud auth loginAuthenticate gcloud CLI with Google account
gcloud config listList current gcloud CLI configuration
gcloud config set project <project_id>Set default GCP project
gcloud config set compute/zone <zone>Set default compute zone
gcloud compute instances listList all Compute Engine VM instances
gcloud compute instances start <instance-name>Start a VM instance
gcloud compute instances stop <instance-name>Stop a VM instance
gcloud compute instances ssh <instance-name>SSH into a VM instance
gcloud compute instances create my-vm --machine-type=e2-micro --image-family=debian-11 --image-project=debian-cloudCreate a new VM instance
gsutil lsList all Cloud Storage buckets
gsutil mb gs://my-unique-bucket/Create a new Cloud Storage bucket
gsutil cp local_file.txt gs://my-bucket/Upload a file to a bucket
gsutil cp gs://my-bucket/remote_file.txt .Download a file from a bucket
gsutil rm gs://my-bucket/file.txtDelete a file from a bucket
gcloud container clusters listList GKE clusters
gcloud container clusters get-credentials <cluster-name> --zone <zone>Get kubectl credentials for a GKE cluster
gcloud container clusters create my-gke-cluster --num-nodes=1Create a new GKE cluster
gcloud app deployDeploy a Google App Engine application
gcloud functions deploy my-function --runtime python39 --trigger-httpDeploy a Cloud Function
Get new cheatsheets & tools in your inbox
No spam — just new releases, occasionally.