Skip to content

Instantly share code, notes, and snippets.

Created February 5, 2018 18:12
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
"gcloud config" wrapper to easily select the correct configuration
if [[ -z "$1" ]]; then
gcloud config configurations list;
case "$1" in
# These clauses implement aliases for my most commonly used configurations.
# Change them to support your needs or remove them.
gcloud config configurations activate default
gcloud config configurations activate plotly-testing
gcloud config configurations activate "$1"
Copy link

scjody commented Feb 5, 2018

Put this in your path to make selecting configurations easier.

gc             # list configurations
gc prod        # switch to the "default" configuration (prod is an alias)
gc someconfig  # switch to the "someconfig" configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment