2020-10-24 14:24:57 +02:00
|
|
|
# pass otp
|
2020-08-01 10:19:19 +02:00
|
|
|
|
|
|
|
> A pass extension for managing one-time-password (OTP) tokens.
|
2025-04-25 21:19:03 +03:00
|
|
|
> More information: <https://manned.org/pass-otp>.
|
2020-08-01 10:19:19 +02:00
|
|
|
|
|
|
|
- Prompt for an otpauth URI token and create a new pass file:
|
|
|
|
|
|
|
|
`pass otp insert {{path/to/pass}}`
|
|
|
|
|
2020-10-24 14:24:57 +02:00
|
|
|
- Prompt for an otpauth URI token and append to an existing pass file:
|
2020-08-01 10:19:19 +02:00
|
|
|
|
|
|
|
`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:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`pass otp {{[-c|--clip]}} {{path/to/pass}}`
|
2020-08-01 10:19:19 +02:00
|
|
|
|
|
|
|
- Display a QR code using the OTP token stored in a pass file:
|
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`pass otp uri {{[-q|--qrcode]}} {{path/to/pass}}`
|
2020-08-01 10:19:19 +02:00
|
|
|
|
2020-10-24 14:24:57 +02:00
|
|
|
- Prompt for an OTP secret value specifying issuer and account (at least one must be specified) and append to existing pass file:
|
2020-08-01 10:19:19 +02:00
|
|
|
|
2025-04-25 21:19:03 +03:00
|
|
|
`pass otp append {{[-s|--secret]}} {{[-i|--issuer]}} {{issuer_name}} {{[-a|--account]}} {{account_name}} {{path/to/pass}}`
|