GCP - Switching between projects.

0 votes
How can I switch from one project to another in GCP via command line?
Nov 5, 2019 in GCP by anonymous
• 18,400 points
262 views

1 answer to this question.

0 votes

You could use gcloud init command to do this manually.

The other way would be 

gcloud config set project my-project

You may also set the environment variable $CLOUDSDK_CORE_PROJECT.

answered Nov 5, 2019 by Sirajul
• 58,130 points

Related Questions In GCP

+2 votes
1 answer

How to list down all the projects in GCP Cloud?

Hi@akhtar, GCP Shell has a command named gcloud. ...READ MORE

answered Aug 22 in GCP by MD
• 65,280 points
42 views
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 58,130 points
518 views
0 votes
1 answer
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 58,130 points
346 views
0 votes
1 answer

Connect networks from different GCP projects.

You could probably use Shared VPC for ...READ MORE

answered Nov 14, 2019 in GCP by Sirajul
• 58,130 points
254 views