Skip to content

A Heroku CLI plugin that sets a persistent HEROKU_APP environment variable when running commands

Notifications You must be signed in to change notification settings

cadecairos/heroku-set-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-set-app

always set HEROKU_APP to a configured value

oclif Version CircleCI Downloads/week License

Usage

$ heroku plugins:install cadecairos/heroku-set-app
$ heroku set-app:set my-app
HEROKU_APP will be set to my-app until unset
$ heroku ps
=== web (Standard-1X): npm start (1)
web.1: up 2020/05/21 18:00:00 -0400 (~ 1h ago)
$ heroku set-app:delete
Deleted my-app from the set-app config
...

Commands

  • heroku set-app:set
  • heroku set-app:delete

heroku set-app:set appName

Saves 'appName' to a user configuration file, which is applied to process.env.HEROKU_APP using an oclif hook.

USAGE
  $ heroku set-app:set appName

See code: src/commands/set-app/set.js

heroku set-app:delete

Removes any value of appName from the config file

USAGE
  $ heroku set-app:delete

See code: src/commands/set-app/delete.js

About

A Heroku CLI plugin that sets a persistent HEROKU_APP environment variable when running commands

Resources

Stars

Watchers

Forks

Packages

No packages published