home / tils / til

Menu
  • GraphQL API

til: cloudrun_multiple-gcloud-accounts.md

Export data

til

This row where path = "cloudrun_multiple-gcloud-accounts.md"

TSV
Tab-separated values, for pasting into Excel or Google Sheets
CSV
Comma-separated values, for spreadsheets and other tools
  • JSON
    The row inside an object, with extra details
    View Download

path
cloudrun_multiple-gcloud-accounts.md
topic
cloudrun
title
Switching between gcloud accounts
url
https://github.com/simonw/til/blob/main/cloudrun/multiple-gcloud-accounts.md
body
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]. ```
html
<p>I have two different Google Cloud accounts active at the moment. Here's how to list them with <code>gcloud auth list</code>:</p> <pre><code>% gcloud auth list Credentialed Accounts ACTIVE ACCOUNT simon@example.com * me@gmail.com To set the active account, run: $ gcloud config set account `ACCOUNT` </code></pre> <p>And to switch between them with <code>gcloud config set account</code>:</p> <pre><code>% gcloud config set account me@gmail.com Updated property [core/account]. </code></pre>
shot
<Binary: 50,173 bytes>
created
2021-05-18T14:35:37-07:00
created_utc
2021-05-18T21:35:37+00:00
updated
2021-09-23T11:42:26-07:00
updated_utc
2021-09-23T18:42:26+00:00
shot_hash
be7b6208a2e3f8d86967eb00019c5db0
slug
multiple-gcloud-accounts
Powered by Datasette · How this site works · Code of conduct