Apr 8, 2018

List and set Google Cloud project from command line

$ gcloud config list project
[core]
project = <PROJECT_ID>
If for some reason the project is not set, simply issue the following command :
$ gcloud config set project <PROJECT_ID>