How to Change Google Cloud Account | CPO200

The syntax to switch the active account takes the following format.

gcloud config set account <accountemailaddress>

To switch to using a Compute Engine service account you should type:

gcloud config set account <SOMEID>-compute@developer.gserviceaccount.com

To switch to using a Gmail based account you should type:

gcloud config set account <name>@gmail.com 

Published: November 23 2016

  • Category :