Employment Hero CLI
npm install ehcli

A CLI application to interact with Employment Hero microservices infrastructure.
- Using npm : npm install -g ehcli
- Using yarn: yarn global add ehcli
shell
Usage: hero [options] [command]
Commands:
apps:list|apps [options] list your apps
apps:info|info [options] show detailed app information
apps:status|status [options] show app deployment status
apps:create|create [options] create a new app definition based on chart and push to Firebase
apps:setup|setup [options] setup app for the first time based on provided manifest (app.json)
apps:init|init [options] initialize app based on provided manifest (app.json).This replaces repo:create + app:create + app:setup.
apps:restart|restart [options] restart app
apps:scale|scale [options] [others...] scale an app
releases:list|releases [options] display the releases for an app
releases:rollback|rollback [options] rollback a release of an app to a certain revision
config:get|config [options] [key] display the config vars for an app
config:set [options] [others...] set one or more config vars
config:unset [options] unset a config var
version print the client/server version information
logs [options] display recent log output
ci:build|build [options] build docker image based on provided manifest (app.json)
ci:push|push [options] push docker image based on provided manifest (app.json)
ci:pull|pull [options] pull docker image based on provided manifest (app.json)
ci:deploy|deploy [options] deploy new version based on provided manifest (app.json)
manifest:validate validate a manifest file (app.json)
manifest:get get a field from manifest file (app.json)
auth:login|login [options] login with your Github credentials
auth:logout|logout clear local authentication credentials
auth:token|token display your api token
auth:whoami|whoami display your account details
run [options] [args...] run a one-off process inside a Kubernetes container
procs:list|procs [options] list your app's procs
repos:create create a new repo in Amazon EC2 Container Registry
files:add [options] add a file
files:rm [options] remove a file
slack:notify send notification to slack channel
endpoints:list|endpoints [options] list your endpoints
endpoints:create [options] create an endpoint in Kong (app.json)
help output usage information
Options:
-h, --help output usage information
--dry-run simulate the command
Examples:
$ hero apps:list --context $STAGING_CLUSTER # list all apps
$ hero apps --context $STAGING_CLUSTER # same as above, apps is an alias for apps:list
$ hero config:get -a announcement-api --context $STAGING_CLUSTER # get all env config for app announcement-api
``