How to change the project in GCP using CLI commands

前端 未结 16 1738
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 18:07

How can i change the current running project to another project in GCP (Google Cloud Platform) account using cli commands other than using

16条回答
  •  滥情空心
    2021-01-29 18:54

    Also, if you are using more than one project and don't want to set global project every time, you can use select project flag.

    For example: to connect a virtual machine, named my_vm under a project named my_project in Google Cloud Platform:

    gcloud --project my_project compute ssh my_vm

    This way, you can work with multiple project and change between them easily by just putting project flag. You can find much more information about other GCP flags from here.

提交回复
热议问题