1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 11:26:00 +02:00
tldr/pages/common/pass-otp.md
Managor 8e09a08059
common*: refresh old pages part 3 (#16257)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-04-25 21:19:03 +03:00

28 lines
905 B
Markdown

# pass otp
> A pass extension for managing one-time-password (OTP) tokens.
> More information: <https://manned.org/pass-otp>.
- Prompt for an otpauth URI token and create a new pass file:
`pass otp insert {{path/to/pass}}`
- Prompt for an otpauth URI token and append to an existing pass file:
`pass otp append {{path/to/pass}}`
- Print a 2FA code using the OTP token in a pass file:
`pass otp {{path/to/pass}}`
- Copy and don't print a 2FA code using the OTP token in a pass file:
`pass otp {{[-c|--clip]}} {{path/to/pass}}`
- Display a QR code using the OTP token stored in a pass file:
`pass otp uri {{[-q|--qrcode]}} {{path/to/pass}}`
- Prompt for an OTP secret value specifying issuer and account (at least one must be specified) and append to existing pass file:
`pass otp append {{[-s|--secret]}} {{[-i|--issuer]}} {{issuer_name}} {{[-a|--account]}} {{account_name}} {{path/to/pass}}`