New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

heroku-set-env

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-set-env

Set all config vars from .env in Heroku project using one-command CLI.

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source



heroku-set-env


npm package downloads license

Set all config vars from .env in Heroku project using one-command CLI.

Installation

npm i -g heroku-set-env
#or
yarn global add heroku-set-env

Usage

You need to login Heroku CLI first. Run heroku login if you are not logged in.

    $ heroku-set-env --help

    Usage
        $ heroku-set-env -a "your-app-name"

    Options
        --app -a App name of heroku project (required)
        --path -p  Path of .env file (optional)
        --help

    Example
        $ heroku-set-env -a example-project
        $ heroku-set-env -a example-project -p .env.example

Example

npm i --save-dev heroku-set-env

then set script in package.json

{
    ...
    "scripts":{
        ...
        "heroku-config": "heroku-set-env -a your-app-name -p .env.heroku"
    }
}

then run script

npm run heroku-config

then all vars in .env.heroku set to the your Heroku project.

Keywords

heroku

FAQs

Package last updated on 09 Feb 2022

Related posts