gcloud Cheatsheet

Top commands.

Authentication

gcloud auth is the entry point for everything. Get the auth and configurations right and the rest of the CLI behaves.

Project and region management

Project and region defaults shape every subsequent command. Set them explicitly per terminal.

Compute Engine commands

Compute Engine is where the bulk of daily work lives. Three commands cover 80 percent of cases.

GKE commands

GKE on the CLI is a thin wrapper over kubectl context. Three commands set you up.

Logs and debugging

Logging and IAM are the daily debugging surface. Read, tail, describe.