![Image](https://storage.googleapis.com/stateless-torbjorn-zetterlund/sites/8/2019/12/f18afa07-20180622_083635.jpg)
Useful GCP commands when working with multiple GCP domains
by bernt & torsten
I have recently been working on multiple Google Cloud Platform (GCP) domains, I’m not referring to GCP project I talking about different GCP Domains. I have been working with moln.co and socialclimate.tech. When working with different GCP domains, I needed to switch back and forth between the GCP domains. I have listed a few commands that are useful when you working from the command line with GCP CLI.
Authenticated with the correct account:
gcloud auth list
* account 1
account 2
Change to the project’s account if not:
gcloud config set account `ACCOUNT`
authorize gcloud to access the Cloud Platform with Google user credentials
gcloud auth login
initialize or reinitialize gcloud
gcloud init
List the project:
gcloud projects list
- project 1
- project 2...
Switch to the intended project:
gcloud config set project `PROJECT ID`
Check Active Project
gcloud config get-value project
There you have it some useful command to make sure you are on the right project, switching GCP domain – this is just a subset of commands for GCP. Here is a link to the full GCP CLI API commands
![Image](https://storage.googleapis.com/stateless-torbjorn-zetterlund/sites/8/2024/06/20240604-102648.png)
The AI boom – a ticking energy bomb
Yes, the rise of artificial intelligence indeed presents a conundrum, not unlike the many...
![Image](https://storage.googleapis.com/stateless-torbjorn-zetterlund/sites/8/2023/11/totta7219_this_is_about_In_the_realm_of_creative_endeavour.png)
Three Ideas To Keep Your Construction Business Running Smoothly
If your construction business is currently struggling, then you need to work out how to get...
![Image](https://storage.googleapis.com/stateless-torbjorn-zetterlund/sites/8/2024/01/20240116-085856.png)
Business vs. GPTs: Navigating the Challenges of Personalized AI
The recent proclamation by OpenAI has caught the attention of $20 ChatGPT Plus subscribers,...