Difference between revisions of "Gcloud auth list"
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
== See also == | == See also == | ||
* {{gcloud auth}} | * {{gcloud auth}} | ||
− | |||
[[Category:GCP]] | [[Category:GCP]] |
Revision as of 10:07, 21 November 2022
https://cloud.google.com/sdk/gcloud/reference/auth/list
gcloud auth list
gcloud auth list Credentialed Accounts ACTIVE ACCOUNT * your_user@you_account.iam.gserviceaccount.com To set the active account, run: $ gcloud config set account `ACCOUNT`
gcloud auth list Credentialed Accounts ACTIVE ACCOUNT your_user@you_account.iam.gserviceaccount.com * [email protected] To set the active account, run: $ gcloud config set account `ACCOUNT`
List active account:
ACCOUNT=$(\ gcloud auth list \ --format="yaml" --filter="status=ACTIVE" \ --format="value(account)"\ ) && echo ${ACCOUNT}
gcloud auth list No credentialed accounts. To login, run: $ gcloud auth login `ACCOUNT`
Related
gcloud config set account
gcloud init
GOOGLE_APPLICATION_CREDENTIALS
gcloud auth application-default login
gcloud auth login
gcloud iam service-accounts describe
See also
Advertising: