1.0.1 • Published 4 years ago

schedulerctl v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

schedulerctl

Heroku CLI plugin to create and manage Heroku Scheduler jobs of an Heroku application.

oclif Version Downloads/week License

Installation

$ heroku plugins:install schedulerctl

Usage

$ npm install -g schedulerctl
$ schedulerctl COMMAND
running command...
$ schedulerctl (-v|--version|version)
schedulerctl/1.0.1 darwin-x64 node-v12.6.0
$ schedulerctl --help [COMMAND]
USAGE
  $ schedulerctl COMMAND
...

Commands

schedulerctl jobs

list the Heroku Scheduler jobs of an app

USAGE
  $ schedulerctl jobs

OPTIONS
  -a, --app=app  (required) app to run command against

EXAMPLE
  $ heroku jobs -a example

See code: src/commands/jobs.ts

schedulerctl jobs:add

add a new Heroku Scheduler job to an app

USAGE
  $ schedulerctl jobs:add

OPTIONS
  -a, --app=app                                                                                                (required
                                                                                                               ) app to
                                                                                                               run
                                                                                                               command
                                                                                                               against

  -c, --command=command                                                                                        (required
                                                                                                               ) command
                                                                                                               to
                                                                                                               execute

  -d, --dynoSize=Free|Hobby|Standard-1X|Standard-2X|Performance-M|Performance-L|Private-S|Private-M|Private-L  (required
                                                                                                               ) dyno
                                                                                                               size to
                                                                                                               use

  -f, --frequency=frequency                                                                                    (required
                                                                                                               )
                                                                                                               frequency
                                                                                                               to use

EXAMPLES
  $ heroku jobs:add -a example -c "sleep 60" -f "*/10 * * *" -d Standard-1X
  $ heroku jobs:add -a example -c "sleep 60" -f "50 * * * *" -d Standard-1X
  $ heroku jobs:add -a example -c "sleep 60" -f "30 10 * * *" -d Standard-1X

See code: src/commands/jobs/add.ts

schedulerctl jobs:remove ID

permanently remove a Heroku Scheduler job from an app

USAGE
  $ schedulerctl jobs:remove ID

ARGUMENTS
  ID  id of the Heroku Scheduler job

OPTIONS
  -a, --app=app  (required) app to run command against

EXAMPLE
  $ heroku jobs:remove 1 -a example

See code: src/commands/jobs/remove.ts

schedulerctl jobs:update ID

update a Heroku Scheduler job from an app

USAGE
  $ schedulerctl jobs:update ID

ARGUMENTS
  ID  id of the Heroku Scheduler job

OPTIONS
  -a, --app=app                                                                                                (required
                                                                                                               ) app to
                                                                                                               run
                                                                                                               command
                                                                                                               against

  -c, --command=command                                                                                        (required
                                                                                                               ) command
                                                                                                               to
                                                                                                               execute

  -d, --dynoSize=Free|Hobby|Standard-1X|Standard-2X|Performance-M|Performance-L|Private-S|Private-M|Private-L  (required
                                                                                                               ) dyno
                                                                                                               size to
                                                                                                               use

  -f, --frequency=frequency                                                                                    (required
                                                                                                               )
                                                                                                               frequency
                                                                                                               to use

EXAMPLES
  $ heroku jobs:update 1 -a example -c "sleep 60" -f "*/10 * * *" -d Standard-1X
  $ heroku jobs:update 1 -a example -c "sleep 60" -f "50 * * * *" -d Standard-1X
  $ heroku jobs:update 1 -a example -c "sleep 60" -f "30 10 * * *" -d Standard-1X

See code: src/commands/jobs/update.ts