The gcloud CLI cheat sheet

A roster of go-to commands for the Google Cloud CLI, the primary command-line tool for Google Cloud.

(Also included: introductory primer, understanding commands, and a printable PDF.)

Cheat sheet

Getting started

Get going with the gcloud CLI.

Help

gcloud CLI is happy to help.

  • gcloud help: Search the gcloud CLI reference documents for specific terms.
  • gcloud feedback: Provide feedback to the gcloud CLI team.
  • gcloud topic: Supplementary help material for non-command topics like accessibility, filtering, and formatting.

Personalization

Make the gcloud CLI your own; personalize your configuration with properties.

Authorization and Credentials

Grant and revoke authorization to the gcloud CLI and manage credentials.

  • gcloud auth login: Authorize Google Cloud access for the gcloud CLI with Google Cloud user credentials and set the current account as active.
  • gcloud auth activate-service-account: Authorize Google Cloud access similar to gcloud auth login but with service account credentials.