Skip to content

Instantly share code, notes, and snippets.

@octagonal
Created September 21, 2017 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save octagonal/c20b36819341d6052f5fe0b81b5a65e7 to your computer and use it in GitHub Desktop.
Save octagonal/c20b36819341d6052f5fe0b81b5a65e7 to your computer and use it in GitHub Desktop.
Find heroku config vars
# 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