gcloud CLI Cheatsheet

Supercharge your daily acitivities related to GCP using the combination of gcloud CLI and jq.

Prerequisites

⚠️ Disclaimer: All Resource Name, Account, Hostname etc are generated using Faker. They should not match any real user data.

➡️ If you have multiple GCP Projects, you can use export variables to point gcloud to specific Project, Region and Zone.

export CLOUDSDK_CORE_PROJECT=my-dev-project
export CLOUDSDK_COMPUTE_REGION=us-west1
export CLOUDSDK_COMPUTE_ZONE=us-west1-c