I’m looking for a gcloud
one-liner to get the default project ID ($GCP_PROJECT_ID
).
The list
command gives me:
gcloud config list core/project
#=>
[core]
project = $GCP_PROJECT_ID
Your active configuration is: [default]
While I only want the following output:
gcloud . . .
#=>
$GCP_PROJECT_ID