I have two different Google Cloud accounts active at the moment. Here's how to list them with gcloud auth list
:
% gcloud auth list
Credentialed Accounts
ACTIVE ACCOUNT
simon@example.com
* me@gmail.com
To set the active account, run:
$ gcloud config set account `ACCOUNT`
And to switch between them with gcloud config set account
:
% gcloud config set account me@gmail.com
Updated property [core/account].
Created 2021-05-18T14:35:37-07:00, updated 2021-09-23T11:42:26-07:00 · History · Edit