Welcome to the Linux Foundation Forum!

Where does gcloud store its defaults?

dwschulze Posts: 4
edited March 2018 in LFS258 Class Forum

Following the Quick Start at


I set a default project like this

$ gcloud config set project lfs258

Updated property [core/project].

$ gcloud config get-value project


The project lfs258 doesn't exist on my GCP account, though, so I'm surprised that I could set it as the default.

Where does gcloud store its defaults?  kubectl stores them in .kube/config but I can't find a similar config file for gcloud.



  • chrispokorni
    chrispokorni Posts: 2,012

    Hi, running 'gcloud projects list' should list all the projects available under you account, which should be the default one and any other projects you created.


  • serewicz
    serewicz Posts: 1,000
    edited March 2018


    I think the directory you are looking for would be something like this:   ~/.config/gcloud/configurations/  but may be different depending on the operating system you are using. This is where it is saved on an Ubuntu system. 




Upcoming Training