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`
Are you looking to crack the GCP Certification Exam? Check out Intellipaat's Google Cloud Training!