Gcloud command line get default project_id

前端 未结 5 471
野的像风
野的像风 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:29

    With Google Cloud SDK 266.0.0 you can use following command:

    gcloud config get-value project
    

提交回复
热议问题