npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@heroku-cli/plugin-enterprise

2.2.0 • Public • Published

@heroku-cli/plugin-enterprise

CLI to manage Heroku Enterprise Accounts

oclif Version CircleCI

Codecov Downloads/week License

Usage

$ heroku plugins:install @heroku-cli/plugin-enterprise
$ heroku COMMAND
running command...
$ heroku --help [COMMAND]
USAGE
  $ heroku COMMAND
...

Commands

heroku enterprises

list your enterprise accounts

USAGE
  $ heroku enterprises

EXAMPLE
  $ heroku enterprises

See code: src/commands/enterprises/index.ts

heroku enterprises:audits

list available audit logs for an enterprise account

USAGE
  $ heroku enterprises:audits

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  -x, --extended                               show extra columns
  --json                                       display as json

EXAMPLE
  $ heroku enterprises:audits --enterprise-account=account-name

See code: src/commands/enterprises/audits/index.ts

heroku enterprises:audits:export [LOG]

export an audit log for an enterprise account

USAGE
  $ heroku enterprises:audits:export [LOG]

ARGUMENTS
  LOG  audit log date (YYYY-MM)

OPTIONS
  -d, --dest=dest                              download destination for the exported audit log
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  -f, --force                                  overwrite existing file during download

EXAMPLES
  $ heroku enterprises:audits:export 2018-11 --enterprise-account=account-name
  $ heroku enterprises:audits:export 2018-11 --enterprise-account=account-name --dest=/tmp
  $ heroku enterprises:audits:export 2018-11 --enterprise-account=account-name --dest=/tmp/audit_report.json.gz
  $ heroku enterprises:audits:export 2018-11 --enterprise-account=account-name --dest=/tmp/audit_report.json.gz --force

See code: src/commands/enterprises/audits/export.ts

heroku enterprises:members

list members of the enterprise account and their permissions

USAGE
  $ heroku enterprises:members

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  --columns=columns                            only show provided columns (comma-separated)
  --csv                                        output is csv format
  --filter=filter                              filter property by partial string matching, ex: name=foo
  --no-header                                  hide table header from output
  --no-truncate                                do not truncate output to fit screen
  --sort=sort                                  property to sort by (prepend '-' for descending)

EXAMPLE
  $ heroku enterprises:members --enterprise-account=account-name

See code: src/commands/enterprises/members/index.ts

heroku enterprises:members:add EMAIL

add a member to an enterprise account

USAGE
  $ heroku enterprises:members:add EMAIL

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  -p, --permissions=permissions                (required) permissions to grant the member (comma-separated)

ALIASES
  $ heroku enterprises:members-add

EXAMPLE
  $ heroku enterprises:members:add member-name --enterprise-account=account-name 
  --permissions=billing,create,manage,view

See code: src/commands/enterprises/members/add.ts

heroku enterprises:members:permissions:add EMAIL

adds permissions to the member of an enterprise account

USAGE
  $ heroku enterprises:members:permissions:add EMAIL

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  -p, --permissions=permissions                (required) permissions to grant the member (comma-separated)

EXAMPLE
  $ heroku enterprises:members:permissions:add member-name --enterprise-account=account-name 
  --permissions=billing,create,manage,view

See code: src/commands/enterprises/members/permissions/add.ts

heroku enterprises:members:permissions:remove EMAIL

removes permissions from the member of an enterprise account

USAGE
  $ heroku enterprises:members:permissions:remove EMAIL

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  -p, --permissions=permissions                (required) permissions to remove from the member (comma-separated)

EXAMPLE
  $ heroku enterprises:members:permissions:remove member-name --enterprise-account=account-name 
  --permissions=billing,create,manage,view

See code: src/commands/enterprises/members/permissions/remove.ts

heroku enterprises:members:remove EMAIL

remove a member from an enterprise account

USAGE
  $ heroku enterprises:members:remove EMAIL

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name

ALIASES
  $ heroku enterprises:members-remove

EXAMPLE
  $ heroku enterprises:members:remove member-name --enterprise-account=account-name

See code: src/commands/enterprises/members/remove.ts

heroku enterprises:rename NEWACCOUNTNAME

rename the enterprise account

USAGE
  $ heroku enterprises:rename NEWACCOUNTNAME

ARGUMENTS
  NEWACCOUNTNAME  new enterprise account name

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name

EXAMPLE
  $ heroku enterprises:rename new-account-name --enterprise-account=account-name

See code: src/commands/enterprises/rename.ts

heroku enterprises:teams

list teams within an enterprise account

USAGE
  $ heroku enterprises:teams

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name
  --columns=columns                            only show provided columns (comma-separated)
  --csv                                        output is csv format
  --filter=filter                              filter property by partial string matching, ex: name=foo
  --no-header                                  hide table header from output
  --no-truncate                                do not truncate output to fit screen
  --sort=sort                                  property to sort by (prepend '-' for descending)

EXAMPLE
  $ heroku enterprises:teams --enterprise-account=account-name

See code: src/commands/enterprises/teams/index.ts

heroku enterprises:teams:create [TEAM]

create a team in an enterprise account

USAGE
  $ heroku enterprises:teams:create [TEAM]

ARGUMENTS
  TEAM  name of the team to create

OPTIONS
  -e, --enterprise-account=enterprise-account  (required) enterprise account name

EXAMPLE
  $ heroku enterprise:teams:create team-name --enterprise-account=account-name

See code: src/commands/enterprises/teams/create.ts

heroku enterprises:teams:remove TEAM

remove a team from an enterprise account

USAGE
  $ heroku enterprises:teams:remove TEAM

EXAMPLE
  $ heroku enterprises:teams:remove team-name

See code: src/commands/enterprises/teams/remove.ts

heroku enterprises:usage:daily

list the daily usage for an enterprise account or team

USAGE
  $ heroku enterprises:usage:daily

OPTIONS
  -e, --enterprise-account=enterprise-account  enterprise account name
  -t, --team=team                              team name
  --columns=columns                            only show provided columns (comma-separated)
  --csv                                        output is csv format

  --end-date=end-date                          (required) end date of the usage period, cannot be more than 31 days
                                               after the start date

  --filter=filter                              filter property by partial string matching, ex: name=foo

  --no-header                                  hide table header from output

  --no-truncate                                do not truncate output to fit screen

  --sort=sort                                  property to sort by (prepend '-' for descending)

  --start-date=start-date                      (required) start date of the usage period, cannot be more than 6 months
                                               prior to today (starting 2019-01-01)

DESCRIPTION
  Displays the daily usage data for an enterprise account or team.

  NOTE: While we strive to provide the most accurate usage information, the data
  presented here may not reflect license usage or billing for your account.

EXAMPLES
  $ heroku enterprises:usage:daily --enterprise-account=account-name --start-date=2019-01-01 --end-date=2019-01-15 --csv
  $ heroku enterprises:usage:daily --team=team-name --start-date=2019-01-01 --end-date=2019-01-15 --csv
  $ heroku enterprises:usage:daily --team=team-name --start-date=2019-01-01 --end-date=2019-01-15 --csv | less
  $ heroku enterprises:usage:daily --team=team-name --start-date=2019-01-01 --end-date=2019-01-15 --csv > /tmp/usage.csv

See code: src/commands/enterprises/usage/daily.ts

heroku enterprises:usage:monthly

list the monthly usage for an enterprise account or team

USAGE
  $ heroku enterprises:usage:monthly

OPTIONS
  -e, --enterprise-account=enterprise-account  enterprise account name
  -t, --team=team                              team name
  --columns=columns                            only show provided columns (comma-separated)
  --csv                                        output is csv format
  --end-date=end-date                          end date of the usage period
  --filter=filter                              filter property by partial string matching, ex: name=foo
  --no-header                                  hide table header from output
  --no-truncate                                do not truncate output to fit screen
  --sort=sort                                  property to sort by (prepend '-' for descending)
  --start-date=start-date                      start date of the usage period

DESCRIPTION
  Displays the monthly usage data for an enterprise account or team.

  NOTE: While we strive to provide the most accurate usage information, the data
  presented here may not reflect license usage or billing for your account.

EXAMPLES
  $ heroku enterprises:usage:monthly --enterprise-account=account-name
  $ heroku enterprises:usage:monthly --enterprise-account=account-name --columns='account,team,app,dyno'
  $ heroku enterprises:usage:monthly --enterprise-account=account-name --columns='account,team,app,dyno' --csv
  $ heroku enterprises:usage:monthly --enterprise-account=account-name --columns='account,team,app,addon' 
  --sort='-addon'
  $ heroku enterprises:usage:monthly --enterprise-account=account-name --columns='account,team,app,addon' 
  --filter='app=myapp'
  $ heroku enterprises:usage:monthly --enterprise-account=account-name --columns='account,team,app,data' 
  --sort='-data,app'
  $ heroku enterprises:usage:monthly --team=team-name --start-date 2019-01-15 --end-date 2019-03-01
  $ heroku enterprises:usage:monthly --team-team-name --columns='account,team,app,data' --sort='-data,app'

See code: src/commands/enterprises/usage/monthly.ts

install

npm i @heroku-cli/plugin-enterprise

Downloadsweekly downloads

31

version

2.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability