How to change the project in GCP using CLI commands

前端 未结 16 1709
爱一瞬间的悲伤
爱一瞬间的悲伤 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 19:01

    The selected answer doesn't help if you don't know the name of projects you have added gcloud already. My flow is to list the active projects, then switch to the one I want.

    gcloud config configurations list

    gcloud config configurations activate [NAME]
    where [NAME] is listed from the prior command.

提交回复
热议问题