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, 2020 in GCP by akhtar
• 38,210 points
475 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, 2020 by MD
• 95,300 points

Related Questions In GCP

0 votes
1 answer

How to set the project property in the core section in GCP?

Hi@akhtar, The gcloud config set command sets the specified ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,300 points
88 views
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
• 59,090 points
207 views
0 votes
1 answer
+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 24, 2020 in GCP by MD
• 95,300 points
4,748 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 23, 2020 in GCP by MD
• 95,300 points
163 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 23, 2020 in GCP by MD
• 95,300 points
344 views
0 votes
1 answer

How to create a new project in GCP using the command line?

Hi@akhtar, You need to configure GCP SDK in ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,300 points
159 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, 2020 in GCP by MD
• 95,300 points
117 views