How to change the project in GCP using CLI command?

0 votes

Hi Guys,

I have configured the GCP SDK in my local system. I want to change the project in GCP from the command line. How can I do that?

Sep 13 in GCP by akhtar
• 27,980 points
34 views

1 answer to this question.

0 votes

Hi@akhtar,

If you configured GCP SDK in your system properly, then you can list down all the projects using the below command.

$ gcloud projects list

Now you can switch to your project to use the services.

$ gcloud config set project my-project
answered Sep 13 by MD
• 64,820 points

Related Questions In GCP

0 votes
1 answer

What are the service accounts in GCP? How to create one?

The special accounts associated with a project are called the Service Accounts. The ...READ MORE

answered Oct 9, 2019 in GCP by Sirajul
• 58,130 points
90 views
0 votes
1 answer
+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
• 64,820 points
42 views
+2 votes
1 answer

How to install the Google Cloud SDK in Windows system?

Hi@akhtar, To install the Google Cloud SDK on ...READ MORE

answered Aug 23 in GCP by MD
• 64,820 points
247 views
+2 votes
1 answer

How to create a project from GCP Cloud Shell?

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

answered Aug 22 in GCP by MD
• 64,820 points
50 views
+2 votes
1 answer

How to enable new services to a project in GCP Cloud?

Hi@akhtar, You can enable new services to your ...READ MORE

answered Aug 22 in GCP by MD
• 64,820 points
74 views
0 votes
1 answer

How to authenticate with the correct account in GCP from Command Line?

Hi@akhtar, You can check your accounts from the ...READ MORE

answered Sep 24 in GCP by MD
• 64,820 points
20 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 22 in GCP by MD
• 64,820 points
45 views