Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodef/heroku-clisetup
Setup Heroku CLI without requiring Sudo.
https://github.com/nodef/heroku-clisetup
heroku
Last synced: about 2 months ago
JSON representation
Setup Heroku CLI without requiring Sudo.
- Host: GitHub
- URL: https://github.com/nodef/heroku-clisetup
- Owner: nodef
- License: mit
- Created: 2017-10-16T19:47:25.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-19T18:33:56.000Z (almost 3 years ago)
- Last Synced: 2024-08-10T06:11:08.315Z (5 months ago)
- Topics: heroku
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/heroku-clisetup
- Size: 29.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Setup Heroku CLI without requiring Sudo.
```bash
# 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
[email protected]
HEROKU_CLI_PASSWORD=your_password
``````javascript
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]});
```