Search code examples
google-bigquerygoogle-cloud-platformgcloudgsutilgcloud-cli

Updating from user based configuration file


Whenever I run a bq or gsutil command, I get the below output:

Loading user based configuration file: [/home/reggie/.config/gcloud/properties].
User based configuration files are deprecated and will not be read in a future gcloud release.

What is the alternative, and how do I go about using it?


Solution

  • A few months ago, we introduced gcloud 'configurations' which allow you to have multiple sets of gcloud config properties that you can switch between. More information on the topic can be found here: https://cloud.google.com/sdk/gcloud/reference/topic/configurations

    The next time you set a property using gcloud config set your legacy config file will be automatically upgraded to a new named configuration and you should stop seeing that message. You can also use

    gcloud config configurations create to create a new named configuration.