2.0.0 • Published 7 months ago

@heroku-cli/plugin-2fa v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

Heroku CLI 2FA Plugin

CLI Plugin for 2FA protected apps.

Version Downloads/week License

Installation

$ heroku plugins:install @heroku-cli/heroku-2fa

Usage

$ npm install -g @heroku-cli/plugin-2fa
$ heroku COMMAND
running command...
$ heroku (--version)
@heroku-cli/plugin-2fa/2.0.0 darwin-x64 node-v20.18.3
$ heroku --help [COMMAND]
USAGE
  $ heroku COMMAND
...

Development

Follow the Developing CLI Plugins guide.

Commands

heroku 2fa:preauth

add a pre-authorization to perform actions on a paranoid app without two-factor authentication

USAGE
  $ heroku 2fa:preauth -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

DESCRIPTION
  add a pre-authorization to perform actions on a paranoid app without two-factor authentication

See code: src/commands/2fa/preauth/index.ts

heroku 2fa:preauth:clear

remove a pre-authorization to perform actions on a paranoid app without two-factor authentication

USAGE
  $ heroku 2fa:preauth:clear -a <value> [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

DESCRIPTION
  remove a pre-authorization to perform actions on a paranoid app without two-factor authentication

See code: src/commands/2fa/preauth/clear.ts

heroku 2fa:yubikeys

list yubikeys for this account

USAGE
  $ heroku 2fa:yubikeys

DESCRIPTION
  list yubikeys for this account

See code: src/commands/2fa/yubikeys/index.ts

heroku 2fa:yubikeys:add

add a yubikey to this account

USAGE
  $ heroku 2fa:yubikeys:add

DESCRIPTION
  add a yubikey to this account
  You will be prompted to press it.

See code: src/commands/2fa/yubikeys/add.ts

heroku 2fa:yubikeys:remove ID

remove a yubikey from this account

USAGE
  $ heroku 2fa:yubikeys:remove ID

ARGUMENTS
  ID  id of the Yubikey to remove

DESCRIPTION
  remove a yubikey from this account

See code: src/commands/2fa/yubikeys/remove.ts