in Education by
How can i change the current running project to another project in GCP (Google Cloud Platform) account using cli commands other than using gcloud init manually. $gcloud projects list will list the projects running on my account. I want to change the current project to any other project from the list using a cli command. Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
1)To make sure you are authenticated with the correct account, type the following command: gcloud auth list * account 1 account 2 2)To shift(change) to the project's account if not: gcloud config set account `ACCOUNT` 3)Depending on the chosen account, the project list will be different, to check the project list, type the following command: gcloud projects list - project 1 - project 2 4)Switch to the intended project: gcloud config set project `PROJECT NAME`

Related questions

0 votes
    I am on a mac and am trying to install the Google Cloud SDK (including the gcloud command line utility) ... this installation working? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    It seems that from Google Cloud Console there is no way to delete a project. Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I would like to transfer ownership of the Google Cloud project completely. By completely I mean rather than ... Thanks in advance Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Is it possible to rename a Google Cloud Platform project? If so, how? I don't need to change the project ID ... . Thanks for any tips! Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    When I attempt to load data into BigQuery from Google Cloud Storage it asks for the Google Cloud Storage URI ... Developers Console? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I have 2 Google Compute Engine instances and I want to open port 9090 in both the instances. I think we need to ... how can I do that? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    As an example, Google App Engine uses Google Datastore, not a standard database, to store data. Does anybody ... working with them? Select the correct answer from above options...
asked Jan 30, 2022 in Education by JackTerrance
0 votes
    I have an app script linked to a spreadsheet that has a few functions to automate some processes for users ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    What is the actual difference between Google Compute Engine, App Engine and Container Engine in Google Cloud Compute ... three engines? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I'm working on an app that has video streaming functionality. I'm using a firebase database and firebase storage. ... end. Any advice? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    Cloud Functions and Firebase Functions (or "Cloud Functions for Firebase") both look the same. Please describe the ... between these? Select the correct answer from above options...
asked Feb 2, 2022 in Education by JackTerrance
0 votes
    I would like to know if Firebase Cloud Messaging is free or not for unlimited users? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    Google provides two cloud-based data storage services Google Cloud Datastore and Firebase (after its acquisition). ... vs Firebase? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    Currently, Google App Engine supports both Python & Java. Java support is less mature. However, Java seems to ... libraries, though. Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    I was wondering what the difference between App Engine & Compute Engine are. Can anyone explain the difference to me? Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
...