Skip to content

Instantly share code, notes, and snippets.

@mmrobins
Created September 5, 2019 18:40
Show Gist options
  • Save mmrobins/b501314aaeda93ef10a49b64bdfe273b to your computer and use it in GitHub Desktop.
Save mmrobins/b501314aaeda93ef10a49b64bdfe273b to your computer and use it in GitHub Desktop.
tbid envs
~/bin/heroku_app_env
------
#!/bin/bash
apps=$(heroku apps --all --json --space trailhead | jq -r '.[] | "\(.name)"' | egrep $1)
for app in ${apps[@]}; do
echo $app
heroku config --app $app | egrep $2
echo
done
-------
% ~/bin/heroku_app_env "authentication|web|trailhead-staging|trailhead-production|trailhead-rc1|trailhead-perf" "TBID.*(ORG_ID|HOST)"
th-authentication-development
TBID_ORG_API_LOGIN_HOST: https://tbid-dev.my.salesforce.com
TBID_ORG_ID: 00D1U000000Fg8k
th-authentication-prod
th-authentication-rc1
TBID_ORG_API_LOGIN_HOST: https://rc1-th.my.salesforce.com
TBID_ORG_ID: 00D2K000000oh19
th-authentication-staging
TBID_ORG_API_LOGIN_HOST: https://tbidstage1.my.salesforce.com
TBID_ORG_ID: 00Df4000004lUFD
th-authentication-tbid-int
TBID_ORG_API_LOGIN_HOST: https://trailblazer-identity--int1.my.salesforce.com
TBID_ORG_ID: 00D0t0000000TKn
th-authentication-tbid-int2
TBID_ORG_API_LOGIN_HOST: https://tbid-dev--thonly.my.salesforce.com
TBID_ORG_ID: 00D5C0000000dBP
th-authentication-tbid-int3
TBID_ORG_API_LOGIN_HOST: https://trailblazer-identity--dev1.cs13.my.salesforce.com
TBID_ORG_ID: 00DW0000008xQQ9
trailhead-myth-web-staging
TBID_HOST: https://tbid-dev.my.salesforce.com
trailhead-perf
TBID_HOST: https://tbid-dev.my.salesforce.com
trailhead-production
TBID_HOST: https://trailblazer-identity.my.salesforce.com
trailhead-rc1
TBID_HOST: https://rc1-th.my.salesforce.com
trailhead-staging
TBID_HOST: https://tbidstage1.my.salesforce.com
trailhead-tbid-web-development
TBID_HOST: https://trailblazer-identity--profiles.cs11.my.salesforce.com
trailhead-tbid-web-int2
TBID_HOST: https://tbid-dev--thonly.my.salesforce.com
trailhead-tbid-web-int3
TBID_HOST: https://trailblazer-identity--dev1.cs13.my.salesforce.com
trailhead-tbid-web-integration
TBID_HOST: https://trailblazer-identity--int1.my.salesforce.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment