Created
July 3, 2016 15:35
-
-
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
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
#!/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