Complete Google Cloud CLI commands reference — 155 commands across 5 categories. Quick reference cheat sheet for Cross-platform.
The gcloud CLI is organised as command groups — gcloud compute, gcloud run, gcloud storage — each with its own subcommands, so the table lists the groups and the global flags that apply to every one of them. The groups are the map; the global flags are the part people actually memorise.
| Shortcut | Action |
|---|---|
| gcloud auth login | Login |
| gcloud config set project [ID] | Set project |
| gcloud compute instances list | List VMs |
| gcloud run deploy | Deploy Cloud Run |
| gcloud storage ls | List buckets |
| gcloud functions list | List functions |
| Shortcut | Action |
|---|---|
| gcloud --billing-project=BILLING_PROJECT | The Google Cloud project that will be charged quota for operations performed in gcloud. If you |
| gcloud --configuration=CONFIGURATION | File name of the configuration to use for this command invocation. For more information on how |
| gcloud --flags-file=YAML_FILE | A YAML or JSON file that specifies a --flag:value dictionary. Useful for specifying complex |
| gcloud --flatten | Flatten name[] output resource slices in KEY into separate records for each item in each slice. |
| gcloud --format=FORMAT | Sets the format for printing command output resources. The default is a command-specific |
| gcloud --help | Display detailed help |
| gcloud --project=PROJECT_ID | The Google Cloud project ID to use for this invocation. If omitted, then the current project |
| gcloud --quiet, -q | Disable all interactive prompts when running gcloud commands. If input is required, defaults |
| gcloud --version, -v | Print version information and exit. This flag is only available at the global level |
| gcloud -h | Print a summary help and exit |
| Shortcut | Action |
|---|---|
| gcloud --log-http | Log all HTTP server requests and responses to stderr. Overrides the default core/log_http |
| gcloud --trace-token=TRACE_TOKEN | Token used to route traces of service requests for investigation of issues. Overrides |
| gcloud --user-output-enabled | Print user intended output to the console. Overrides the default core/user_output_enabled |
| Shortcut | Action |
|---|---|
| gcloud access-context-manager | Manage Access Context Manager resources |
| gcloud active-directory | Manage Managed Microsoft AD resources |
| gcloud agent-registry | Manage Agent Registry resources |
| gcloud ai | Manage entities in Vertex AI |
| gcloud ai-platform | Manage AI Platform jobs and models |
| gcloud alloydb | Create and manage AlloyDB databases |
| gcloud alpha | (ALPHA) Alpha versions of gcloud commands |
| gcloud anthos | Anthos command Group |
| gcloud api-gateway | Manage Cloud API Gateway resources |
| gcloud apigee | Manage Apigee resources |
| gcloud apihub | Manage Apihub resources |
| gcloud app | Manage your App Engine deployments |
| gcloud apphub | Manage App Hub resources |
| gcloud artifacts | Manage Artifact Registry resources |
| gcloud asset | Manage the Cloud Asset Inventory |
| gcloud assured | Read and manipulate Assured Workloads data controls |
| gcloud audit-manager | Enroll resources, audit workloads and generate reports |
| gcloud auth | Manage oauth2 credentials for the Google Cloud CLI |
| gcloud backup-dr | Manage Backup and DR resources |
| gcloud batch | Manage Batch resources |
| gcloud beta | (BETA) Beta versions of gcloud commands |
| gcloud beyondcorp | Manage Beyondcorp resources |
| gcloud biglake | Create and manage Google Cloud BigLake resources |
| gcloud bigtable | Manage your Cloud Bigtable storage |
| gcloud billing | Manage billing accounts and associate them with projects |
| gcloud bms | Manage Bare Metal Solution resources |
| gcloud bq | Manage Bq resources |
| gcloud builds | Create and manage builds for Google Cloud Build |
| gcloud certificate-manager | Manage SSL certificates for your Google Cloud projects |
| gcloud cloud-shell | Manage Google Cloud Shell |
| gcloud cloudlocationfinder | Manage Cloudlocationfinder resources |
| gcloud colab | Manage Colab Enterprise resources |
| gcloud compliance-manager | Manage Compliance Manager resources |
| gcloud components | List, install, update, or remove Google Cloud CLI components |
| gcloud composer | Create and manage Cloud Composer Environments |
| gcloud compute | Create and manipulate Compute Engine resources |
| gcloud config | View and edit Google Cloud CLI properties |
| gcloud container | Deploy and manage clusters of machines for running containers |
| gcloud data-catalog | Manage Data Catalog resources |
| gcloud database-migration | Manage Database Migration Service resources |
| gcloud dataflow | Manage Google Cloud Dataflow resources |
| gcloud datalineage | Manage Google Cloud Data Lineage resources |
| gcloud dataplex | Manage Dataplex resources |
| gcloud dataproc | Create and manage Google Cloud Dataproc clusters and jobs |
| gcloud datastore | Manage your Cloud Datastore resources |
| gcloud datastream | Manage Cloud Datastream resources |
| gcloud deploy | Create and manage Cloud Deploy resources |
| gcloud deployment-manager | Manage deployments of cloud resources |
| gcloud design-center | Manage Application Design Center resources |
| gcloud developer-connect | Manage Developer Connect resources |
| gcloud dns | Manage your Cloud DNS managed-zones and record-sets |
| gcloud domains | Manage domains for your Google Cloud projects |
| gcloud edge-cache | Manage Media CDN resources |
| gcloud edge-cloud | Manage edge-cloud resources |
| gcloud emulators | Set up your local development environment using emulators |
| gcloud endpoints | Create, enable and manage API services |
| gcloud essential-contacts | Manage Essential Contacts |
| gcloud eventarc | Manage Eventarc resources |
| gcloud filestore | Create and manipulate Filestore resources |
| gcloud firebase | Work with Google Firebase |
| gcloud firestore | Manage your Cloud Firestore resources |
| gcloud functions | Manage Google Cloud Functions |
| gcloud gemini | Manage resources associated with Gemini Code Assist and Gemini Cloud Assist |
| gcloud healthcare | Manage Cloud Healthcare resources |
| gcloud iam | Manage IAM service accounts and keys |
| gcloud iap | Manage IAP policies |
| gcloud identity | Manage Cloud Identity Groups and Memberships resources |
| gcloud ids | Manage Cloud IDS |
| gcloud infra-manager | Manage Infra Manager resources |
| gcloud kms | Manage cryptographic keys in the cloud |
| gcloud logging | Manage Cloud Logging |
| gcloud looker | Manage Looker resources |
| gcloud lustre | Manage Lustre resources |
| gcloud managed-kafka | Administer Managed Service for Apache Kafka clusters, topics, and consumer groups |
| gcloud memcache | Manage Cloud Memorystore Memcached resources |
| gcloud memorystore | Manage Memorystore resources |
| gcloud metastore | Manage Dataproc Metastore resources |
| gcloud migration | The root group for various Cloud Migration teams |
| gcloud ml | Use Google Cloud machine learning capabilities |
| gcloud model-armor | Model Armor is a service offering LLM-agnostic security and AI safety measures to mitigate |
| gcloud monitoring | Manage Cloud Monitoring dashboards |
| gcloud netapp | Create and manipulate Cloud NetApp Files resources |
| gcloud network-connectivity | Manage Network Connectivity resources |
| gcloud network-management | Manage Network Management resources |
| gcloud network-security | Manage Network Security resources |
| gcloud network-services | Manage Network Services resources |
| gcloud notebooks | Notebooks Command Group |
| gcloud observability | Manage Observability resources |
| gcloud oracle-database | Manage Oracle Database resources |
| gcloud org-policies | Create and manage Organization Policies |
| gcloud organizations | Create and manage Google Cloud Platform Organizations |
| gcloud pam | Manage Privileged Access Manager (PAM) entitlements and grants |
| gcloud parametermanager | Parameter Manager is a single source of truth to store, access and manage the lifecycle of your |
| gcloud policy-intelligence | A platform to help better understand, use, and manage policies at scale |
| gcloud policy-troubleshoot | Troubleshoot Google Cloud Platform policies |
| gcloud preview | (PREVIEW) Preview versions of gcloud commands |
| gcloud privateca | Manage private Certificate Authorities on Google Cloud |
| gcloud projects | Create and manage project access policies |
| gcloud publicca | Manage accounts for Google Trust Services' Certificate Authority |
| gcloud pubsub | Manage Cloud Pub/Sub topics, subscriptions, and snapshots |
| gcloud recaptcha | Manage reCAPTCHA Enterprise Keys |
| gcloud recommender | Manage Cloud recommendations and recommendation rules |
| gcloud redis | Manage Cloud Memorystore Redis resources |
| gcloud resource-manager | Manage Cloud Resources |
| gcloud run | Manage your Cloud Run applications |
| gcloud scc | Manage Cloud SCC resources |
| gcloud scheduler | Manage Cloud Scheduler jobs and schedules |
| gcloud secrets | Manage secrets on Google Cloud |
| gcloud service-directory | Command groups for Service Directory |
| gcloud service-extensions | Manage Service Extensions resources |
| gcloud service-health | Request events that are relevant to your project or organization |
| gcloud services | List, enable and disable APIs and services |
| gcloud source | Cloud git repository commands |
| gcloud source-manager | Manage Secure Source Manager resources |
| gcloud spanner | Command groups for Cloud Spanner |
| gcloud sql | Create and manage Google Cloud SQL databases |
| gcloud storage | Create and manage Cloud Storage buckets and objects |
| gcloud tasks | Manage Cloud Tasks queues and tasks |
| gcloud telco-automation | Manage Telco Automation resources |
| gcloud topic | gcloud supplementary help |
| gcloud transcoder | Manage Transcoder jobs and job templates |
| gcloud transfer | Manage Transfer Service jobs, operations, and agents |
| gcloud vector-search | Manage Vector Search data objects |
| gcloud vmware | Manage Google Cloud VMware Engine resources |
| gcloud workbench | Workbench Command Group |
| gcloud workflows | Manage your Cloud Workflows resources |
| gcloud workload-identity | Manage Workload Identity |
| gcloud workspace-add-ons | Manage Google Workspace Add-ons resources |
| gcloud workstations | Manage Cloud Workstations resources |
| Shortcut | Action |
|---|---|
| gcloud docker | (DEPRECATED) Enable Docker CLI access to Google Container Registry |
| gcloud feedback | Provide feedback to the Google Cloud CLI team |
| gcloud help | Search gcloud help text |
| gcloud info | Display information about the current gcloud environment |
| gcloud init | Initialize or reinitialize gcloud |
| gcloud survey | Invoke a customer satisfaction survey for Google Cloud CLI |
| gcloud version | Print version information for Google Cloud CLI components |
gcloud auth login opens a browser to authenticate and gcloud config set project [ID] picks the project every subsequent command targets; forgetting the second is the cause of most "resource not found" errors. gcloud init walks through both plus a default region, and gcloud info prints the active account, project and configuration paths when something is pointing at the wrong place. gcloud config set project [ID] can be replaced per-command by gcloud --project=PROJECT_ID.
gcloud --format=FORMAT reshapes any command's output — json, yaml, table(name,zone), value(id) — so scripts never have to parse the default table. gcloud --flatten expands repeated fields into one record per item, which pairs with a table format when a resource has lists inside it. gcloud --quiet, -q suppresses interactive prompts and accepts defaults, and belongs in any automation. gcloud --flags-file=YAML_FILE loads a long set of flags from a file, which keeps a complex deploy command reviewable.
gcloud --log-http logs the underlying API requests and responses, which is the way to see exactly what a command sent when the error message is opaque. gcloud --configuration=CONFIGURATION runs one command against a named configuration (a saved account/project/region set) without switching the default. gcloud alpha and gcloud beta prefix commands that exist only in pre-release surfaces. gcloud help searches the built-in help text, which is often faster than the web docs.
gcloud config set project [ID] changes the default. For one command, add --project=PROJECT_ID.
Add --format=json. --format=value(field) prints a single field, which is convenient in shell scripts.
Add --quiet (or -q). It accepts the default answer to every prompt.
Add --log-http. Requests and responses are written to stderr.
Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"