For people that swap between example-project-1
/ example-project-2
or something similar in gcloud often, and get frustrated with doing --project example-project-1
all the time.
If you wanna be able to switch easily across projects (and potentially zones), you can add files like ~/.config/gcloud/configurations/config_reusable-config
, and then do gcloud config configurations activate reusable-config
, with config_reusable-config
looking like: