gcloud config set compute/zone us-central1-a

Category: Google Cloud & Workspace

gcloud config set compute/zone us-central1-a

Set the default Compute Engine zone

Pins gcloud to one zone, us-central1-a, an availability zone in Iowa, so instance commands work without repeating --zone. Choose a zone close to your users and spread redundant instances across zones. See gcloud compute zones list for all options.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.