[go: up one dir, main page]

heroku-clisetup

1.0.1 • Public • Published

Setup Heroku CLI without requiring Sudo.


# add as a dependency to your app
npm install --save heroku-clisetup

# set app environment variable for package url (optional)
HEROKU_CLI_URL=https://cli-assets.heroku.com/heroku-cli/channels/stable/heroku-cli-REPLACEME_OS-REPLACE_ME_ARCH.tar.gz

# set app environment variables for login to heroku
# this information is stored in your ~/.netrc or ~/_netrc
HEROKU_CLI_LOGIN=youremail@domain.com
HEROKU_CLI_PASSWORD=your_password
const cp = require('child_process');
const herokuCliSetup = require('heroku-clisetup');

// Install Heroku CLI.
herokuCliSetup();

// Use heroku cli from your script.
cp.execSync(`~/heroku --version`, {stdio: [0, 1, 2]});

Package Sidebar

Install

npm i heroku-clisetup

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

5.2 kB

Total Files

6

Last publish

Collaborators

  • wolfram77