gcloud Command Examples

The official CLI tool for Google Cloud Platform. Note: gcloud subcommands have their own usage documentation. More information: https://cloud.google.com/sdk/gcloud.

gcloud config list

gcloud auth login

gcloud config set project {{project_name}}

gcloud compute ssh {{user}}@{{instance}}

gcloud compute instances list

gcloud container clusters get-credentials {{cluster_name}}

gcloud components update

gcloud help {{command}}