Google Cloud
Basic Operation
Login
gcloud auth login
List the project
gcloud projects list
View the default setting
gcloud config list
Set the default region and zone for compute engine
gcloud compute regions list
gcloud compute zones list
gcloud config set compute/region {{REGION_NAME}}
gcloud config set compute/zone {{ZONE_NAME}}
Go to project
gcloud config set project {{PROJECT_ID}}
Logout
gcloud auth revoke --all
Last updated
Was this helpful?