Created
September 21, 2017 20:41
-
-
Save octagonal/c20b36819341d6052f5fe0b81b5a65e7 to your computer and use it in GitHub Desktop.
Find heroku config vars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Output is ; delimited | |
for i in $(heroku apps -o $ORG --json | jq -r ".[] | .name"); do | |
# Find by value: | |
echo -n "$i;"; heroku config --app $i | awk '{print $2}' | grep -e "$QUERY" | tr -d '\n'; echo ''; | |
# Find by key: | |
# echo -n "$i;"; heroku config:get $QUERY --app $i | tr -d '\n'; echo ''; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment