Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

gcloud set project

gcloud auth list
* account 1
  account 2

# change the project's account if not
gcloud config set account `ACCOUNT`

#Depending on the account, the project list will be different:
gcloud projects list

- project 1
- project 2...

#Switch to intended project:
gcloud config set project `PROJECT ID`
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #gcloud #set #project
ADD COMMENT
Topic
Name
4+5 =