DebugFactor.com | Forum

How to change the project while deploying in google cloud?

I have 2 projects configured in google cloud, one for production and one for testing. How do I change the project while deploying with “gcloud app deploy” command, so that I can switch between test and production deployment?

To get the list of projects in cmd

gcloud projects list

PROJECT_ID       NAME             PROJECT_NUMBER
yourprojectid    YourProjectName  410562619xxxx

Now to select the project,

gcloud config set project yourprojectid

Updated property [core/project].