Skip to content

viseshrp/heroku.env

Repository files navigation

heroku.env

image

Downloads

CLI tool to manipulate environment variables on Heroku with local .env files, through the Heroku API.

Mentioned in the popular PyCoder's Weekly: https://pycoders.com/issues/357

This library was a quick personal project because we used to use Heroku a lot at work and I find it really annoying when you have to add env vars manually from your local environment every time.

Installation

Requirements

  1. Python 3.7+
  2. Your Heroku API key (found here or by running this), for the Heroku API to run and authenticate you.
  3. A valid Heroku app name is required to run against.
  4. The absolute/relative path to the .env file is also needed, but if not provided, .env will be used as the default file name, which expects a file named .env to be present in the current working directory.

Features

See all options with:

Credits

  • This is inspired by a script by sdkcodes.
  • martyzz1, for the heroku3 API wrapper.
  • Click, for making writing CLI tools a complete pleasure.