Search code examples
google-cloud-platformgcloud

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?


Solution

  • You can set the environment variable

    CLOUDSDK_CONFIG=/path/to/dir
    

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