Skip to content

Instantly share code, notes, and snippets.

@philippkueng
Created July 3, 2016 15:35
Show Gist options
  • Save philippkueng/b95a53ba09cf492d7ce4c765a6f6bd4c to your computer and use it in GitHub Desktop.
Save philippkueng/b95a53ba09cf492d7ce4c765a6f6bd4c to your computer and use it in GitHub Desktop.
get all configuration details of all the heroku apps one has access to
#!/bin/bash
# 1. List all the Apps
# 2. Remove the titles
# 3. Remove the empty lines
# 4. Only get the app-names (no regions or who the app belongs to)
# 5. Fetch the configuration for all the apps and print them
# 6. Use Ctrl+F to find the database entry one is looking for
for APP_NAME in $(heroku apps | grep -v "=== My Apps" | grep -v "=== Collaborated Apps" | grep . | awk '{print $1;}'
)
do
echo ""
echo "Application: "$APP_NAME
heroku config --app $APP_NAME
echo ""
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment