heroku-vars

Bulk get/set heroku config vars

Usage no npm install needed!

<script type="module">
  import herokuVars from 'https://cdn.skypack.dev/heroku-vars';
</script>

README

heroku-vars

Bulk get/set vars between local .env file and remote config.

Usage

Usage Dependencies

heroku cli must also be installed.

$ yarn global add heroku-vars

or with npm
$ npm install -g heroku-vars

$ hvars COMMAND
running command...

$ hvars (--version)
heroku-vars/1.0.0 darwin-x64 node-v12.22.0

$ hvars --help [COMMAND]

USAGE
  $ hvars COMMAND

Commands

hvars pull

Destructive: This completely replaces current .env file with remote config vars.

USAGE
  $ hvars pull

DESCRIPTION
  Bulk save remote config vars to local env.
  
  Destructive: Completely replaces current .env file with remote config vars.

EXAMPLES
  $ hvars pull
  Saved remote vars to local .env

hvars push

Non-destructive. Remote vars without corresponding local keys will remain set in remote.

USAGE
  $ hvars push

DESCRIPTION
  Bulk push local .env to remote config vars.

EXAMPLES
  $ hvars push
  Setting FOO BAR and restarting {app}... done, v00