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
• 19,610 points
1,277 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
• 59,230 points

Related Questions In GCP

0 votes
1 answer

Understanding GCP IAM between multiple projects

Roles set on one project cannot be ...READ MORE

answered Nov 7, 2022 in GCP by Tejashwini
• 3,820 points
1,212 views
+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 23, 2020 in GCP by MD
• 95,460 points
4,203 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
• 59,230 points
2,924 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
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,264 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
• 59,230 points
1,995 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP