Forrest logo
back to the pass tool

pass-otp:tldr:ff162

pass-otp: 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 --secret --issuer ${issuer_name} --account ${account_name} ${path-to-pass}
try on your machine

This command is used to append a one-time password (OTP) entry to the pass password manager. Here is the breakdown of the command:

  • pass otp append: This is the main command to append an OTP entry to pass.
  • --secret: This flag indicates that the OTP secret will be provided.
  • --issuer ${issuer_name}: This flag specifies the issuer name of the OTP. You need to replace ${issuer_name} with the actual name of the issuer.
  • --account ${account_name}: This flag specifies the account name associated with the OTP. Replace ${account_name} with the actual account name.
  • ${path-to-pass}: This is the path to the pass password manager. You need to replace ${path-to-pass} with the actual path.

By running this command, a new OTP entry will be appended to the pass password manager with the provided issuer name, account name, and the secret OTP. This can be useful for storing and managing OTPs securely.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pass tool