Socket
Book a DemoInstallSign in
Socket

@heroku-cli/plugin-2fa

Package Overview
Dependencies
Maintainers
54
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heroku-cli/plugin-2fa

Heroku 2FA commands

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
54
Created
Source

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

Keywords

heroku-plugin

FAQs

Package last updated on 10 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts