Google Cloud Configuration Profiles

Google Cloud Configuration Profiles #

Get a list of configs:

gcloud config configurations lists

Configs are usually stored at ~/.config/gcloud/configurations, with config files named as config_<profile>. The config file usually contains something like:

[core]
account = <account email>
project = <GCP project name>

Switch to different configs:

gcloud config configruations activate <profile>

Once activated, to see the settings:

gcloud config list

To see the settings without activating:

gcloud config list --configuration <profile>