A CLI & Node.js application that copies environment variables in a .env file to and from Heroku.
$ npm install --global heroku-dotenv
You must first make sure you're in the directory your Heroku app is in and have the application selected in the Heroku CLI.
$ heroku-dotenv push
$ heroku-dotenv pull
Pushes/pulls from the specified Heroku app.
$ heroku-dotenv pull -a my-heroku-app
Turns on the Node.js production environment variable.
$ heroku-dotenv push -p
Specify the relative path to the .env file.
$ heroku-dotenv push -f ./my-environment/my-heroku-env-vars