Gcloud command line get default project_id

前端 未结 5 479
野的像风
野的像风 2021-02-01 13:13

I\'m looking for a one-liner to get the default project id

with gcloud config list core/project give me

Your active configuration is: [defau         


        
5条回答
  •  故里飘歌
    2021-02-01 13:50

    From Cloud Shell or any machine where Cloud SDK is installed, we can use:

    echo $DEVSHELL_PROJECT_ID
    

    And as shown in the below screenshot.

提交回复
热议问题