How to copy environment variables from one Heroku app to another
1 min readJul 18, 2020
A note for my future self, that’s going to hopefully help some soul out there:
On Windows:
- Download Cygwin
- Authenticate with Heroku
heroku login
3. Download Heroku env from app A
heroku config -s -a your-app-A > envvars.txt
4. Load the variables into App B
cat envvars.txt | tr '\n' ' ' | xargs heroku config:set -a your-app-B
🎂 here is a cake for your success