Setting Up and Handling Multiple Google Cloud Accounts for Gcloud

·

1 min read

Knowledge from: https://www.linkedin.com/pulse/how-switch-use-multiple-google-cloud-accounts-gcloud-jashif-abubakkar-4v7ec/

To manage multiple Google Cloud projects using different accounts in the gcloud command-line.

List Current Configs

gcloud config configurations list

Create a New Config

gcloud config configurations create CONFIG_NAME

Activate the New Config

gcloud config configurations activate CONFIG_NAME
gcloud auth login
gcloud config set project PROJECT_ID

Switch Between Configs

gcloud config configurations activate CONFIG_NAME