1

I just switched computers and lost all my custom gcloud config configurations. I have files backed up from the old machine, but can't figure out which one has the configurations setup. How can I re-enable the old configurations?

1 Answer 1

1

Aha, looks like they are stored in ~/.config/gcloud/configurations/ and you can just copy them over to use them.

$ ls .config/gcloud/configurations/
config_dev  config_prod  config_staging
1
  • 1
    Why not copy entire .config/gcloud? Note that configuration has references to accounts and keys, and if these are not copied you will have to recreate them.
    – cherba
    Commented May 24, 2018 at 11:43

Not the answer you're looking for? Browse other questions tagged or ask your own question.