gcloud config get project

1 개요[ | ]

gcloud config get project
Console
Copy
$ gcloud config get project
Your active configuration is: [cloudshell-24680]
(unset)
Console
Copy
$ gcloud config set project hello-world-802
Updated property [core/project].
Console
Copy
$ gcloud config get project
Your active configuration is: [cloudshell-24680]
hello-world-802
Console
Copy
$ gcloud config get-value project
Your active configuration is: [cloudshell-24680]
hello-world-802

Console
Copy
$ PROJECT_ID=$(gcloud config get project)
Your active configuration is: [cloudshell-24680]
Console
Copy
$ echo $PROJECT_ID
hello-world-802

2 같이 보기[ | ]