Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @heroku-cli/plugin-enterprise with all npm packages installed. Try it out:

@heroku-cli/plugin-enterprise lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@heroku-cli/plugin-enterprise/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@heroku-cli/plugin-enterprise v2.2.0

CLI to manage Heroku Enterprise Accounts

@heroku-cli/plugin-enterprise

CLI to manage Heroku Enterprise Accounts

oclif Version CircleCI

[![Codecov](https://codecov.io/gh/heroku/heroku-enterprise/branch/master/graph/badge.svg)](https://codecov.io/gh/heroku/heroku-enterprise) [![Downloads/week](https://img.shields.io/npm/dw/plugin-enterprise.svg)](https://npmjs.org/package/@heroku-cli/plugin-enterprise) [![License](https://img.shields.io/npm/l/plugin-enterprise.svg)](https://github.com/heroku/heroku-enterprise/blob/master/package.json) * [Usage](#usage) * [Commands](#commands) # Usage ```sh-session $ heroku plugins:install @heroku-cli/plugin-enterprise $ heroku COMMAND running command... $ heroku --help [COMMAND] USAGE $ heroku COMMAND ... ``` # Commands * [`heroku enterprises`](#heroku-enterprises) * [`heroku enterprises:audits`](#heroku-enterprisesaudits) * [`heroku enterprises:audits:export [LOG]`](#heroku-enterprisesauditsexport-log) * [`heroku enterprises:members`](#heroku-enterprisesmembers) * [`heroku enterprises:members:add EMAIL`](#heroku-enterprisesmembersadd-email) * [`heroku enterprises:members:permissions:add EMAIL`](#heroku-enterprisesmemberspermissionsadd-email) * [`heroku enterprises:members:permissions:remove EMAIL`](#heroku-enterprisesmemberspermissionsremove-email) * [`heroku enterprises:members:remove EMAIL`](#heroku-enterprisesmembersremove-email) * [`heroku enterprises:rename NEWACCOUNTNAME`](#heroku-enterprisesrename-newaccountname) * [`heroku enterprises:teams`](#heroku-enterprisesteams) * [`heroku enterprises:teams:create [TEAM]`](#heroku-enterprisesteamscreate-team) * [`heroku enterprises:teams:remove TEAM`](#heroku-enterprisesteamsremove-team) * [`heroku enterprises:usage:daily`](#heroku-enterprisesusagedaily) * [`heroku enterprises:usage:monthly`](#heroku-enterprisesusagemonthly)

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free