개요
- gcloud config get project
$ gcloud config get project
Your active configuration is: [cloudshell-24680]
(unset)
$ gcloud config set project hello-world-802
Updated property [core/project].
$ gcloud config get project
Your active configuration is: [cloudshell-24680]
hello-world-802
$ gcloud config get-value project
Your active configuration is: [cloudshell-24680]
hello-world-802
$ PROJECT_ID=$(gcloud config get project)
Your active configuration is: [cloudshell-24680]
$ echo $PROJECT_ID
hello-world-802
같이 보기