read

Setup more than one account on gcloud , thanks to google this is a peace of cake


$ gcloud config configurations create config-name
Created [demo-config].
Activated [demo-config].

$ gcloud config set project my-project-id
Updated property [core/project].

$ gcloud config set account my-account@example.com
Updated property [core/account].

$ gcloud config set compute/region us-east1
Updated property [compute/region].

$ gcloud config set compute/zone us-east1-b
Updated property [compute/zone].

after that you need to login


gcloud auth login

Done you create a new config config-name

Now to swith between accounts just run


gcloud config configurations activate config-name

Blog Logo

Wesley Werneck


Published

Image

blog uelei.com

My life my universe and things that came in my mind..

Back to Overview