Skip to content.

Google Cloud CLI 'gcloud' Variables

I find it useful to frontload my terminals with context about my environment; You wouldn’t want to deploy to the wrong environment now would you?

Here I extract information from Google Cloud CLI and print it at the start of every new terminal tab in order to understand exactly where my Google Cloud API requests will go by default.

GCP $GCP_APP_CRED_PROJECT=my-project
GCP $GCP_CONFIGURATION=my-project
GCP $GCP_PROJECT=my-project
Read more →
avatar
Joe Heaton
Cloud High Performance Computing Engineer

Joe Heaton’s technology-focused murmurings.

Settings

Reveal the cookie consent prompt

Use Dyslexia-friendly font OpenDyslexia

Toggle advertisements