← 返回命令列表

Linux command

pass-otp 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Generate OTP code

pass otp [path/to/entry]

Insert OTP secret

pass otp insert [path/to/entry]

Insert from URI

pass otp insert -u [path/to/entry]

Append OTP to existing entry

pass otp append [path/to/entry]

Show OTP URI

pass otp uri [path/to/entry]

Copy OTP to clipboard

pass otp -c [path/to/entry]

Validate OTP configuration

pass otp validate [path/to/entry]

说明

pass-otp extends pass (password-store) with TOTP/HOTP support. It generates time-based one-time passwords. OTP secrets are stored encrypted alongside passwords. The standard otpauth:// URI format is supported. Token generation uses the current time for TOTP. Codes refresh every 30 seconds by default. QR code display enables backup to authenticator apps. URIs can be imported from other authenticators. Clipboard integration copies codes for easy pasting. Codes clear automatically after timeout.

参数

insert
Add new OTP entry.
append
Add OTP to existing entry.
uri
Show OTP URI.
validate
Validate configuration.
-c, --clip
Copy to clipboard.
-q, --qrcode
Display QR code.
-u, --uri
Read from otpauth URI.
-s, --secret
Prompt for secret only.

FAQ

What is the pass-otp command used for?

pass-otp extends pass (password-store) with TOTP/HOTP support. It generates time-based one-time passwords. OTP secrets are stored encrypted alongside passwords. The standard otpauth:// URI format is supported. Token generation uses the current time for TOTP. Codes refresh every 30 seconds by default. QR code display enables backup to authenticator apps. URIs can be imported from other authenticators. Clipboard integration copies codes for easy pasting. Codes clear automatically after timeout.

How do I run a basic pass-otp example?

Run `pass otp [path/to/entry]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does insert do in pass-otp?

Add new OTP entry.