Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make gcloud use a specific config directory?

I would like gcloud to use a specific .config directory that I know the path of. Is there a way to force it to use this directory?

like image 875
Andrew Avatar asked Jan 19 '18 01:01

Andrew


People also ask

How do I change gcloud config?

You can change it by running [gcloud config set compute/zone NAME]. Your project default Compute Engine region has been set to [us-west1]. You can change it by running [gcloud config set compute/region NAME].

How do I change default GCP resource location?

After you set your project's default GCP resource location, you cannot change it. Note that your default GCP resource location only applies to your default Cloud Storage bucket. You can create multiple buckets, each with their own location.

Where is gcloud config stored?

Configurations are stored in your user config directory (typically ~/. config/gcloud on MacOS and Linux, or %APPDATA%\gcloud on Windows); you can find the location of your config directory by running gcloud info --format='value(config.


1 Answers

You can set the environment variable

CLOUDSDK_CONFIG=/path/to/dir

to override the default value of ~/.config/gcloud.

like image 102
Zachary Newman Avatar answered Sep 16 '22 15:09

Zachary Newman