.TH PASS-OTP 1 "2017 March 19" "Password store OTP extension" .SH NAME pass-otp - A \fBpass\fP(1) extension for managing one-time-password (OTP) tokens. .SH SYNOPSIS .B pass otp [ .I COMMAND ] [ .I OPTIONS ]... [ .I ARGS ]... .SH DESCRIPTION .B pass-otp extends the .BR pass (1) utility with the .B otp command for adding OTP secrets, generating OTP codes, and displaying secret key URIs using the standard \fIotpauth://\fP scheme. If no COMMAND is specified, COMMAND defaults to \fBcode\fP. .SH COMMANDS .TP \fBotp code\fP [ \fI--clip\fP, \fI-c\fP ] \fIpass-name\fP Generate and print an OTP code from the secret key stored in \fIpass-name\fP using \fBoathtool\fP(1). If \fI--clip\fP or \fI-c\fP is specified, do not print the code but instead copy it to the clipboard using \fBxclip\fP(1) and then restore the clipboard after 45 (or \fIPASSWORD_STORE_CLIP_TIME\fP) seconds. This command is alternatively named \fBshow\fP. .TP \fBotp insert\fP [ \fI--force\fP, \fI-f\fP ] [ \fI--echo\fP, \fI-e\fP ] [ \fIuri\fP ] \fIpass-name\fP Insert a new OTP secret specified by \fIuri\fP into the password store at \fIpass-name\fP. \fIuri\fP must be formatted according to the Key Uri Format; see the documentation at .UR https://\:github.\:com/\:google/\:google-authenticator/\:wiki/\:Key-Uri-Format .UE . If \fIuri\fP is not specified, it will be consumed from stdin; specify \fI--echo\fP or \fI-e\fP to show a visible prompt when running this command interactively. Prompt before overwriting an existing password, unless \fI--force\fP or \fI-f\fP is specified. This command is alternatively named \fBadd\fP. .TP \fBotp uri\fP [ \fI--clip\fP, \fI-c\fP | \fI--qrcode\fP, \fI-q\fP ] \fIpass-name\fP Print the key URI stored in \fIpass-name\fP to stdout. If \fI--clip\fP or \fI-c\fP is specified, do not print the URI but instead copy it to the clipboard using .BR xclip (1) and then restore the clipboard after 45 (or \fIPASSWORD_STORE_CLIP_TIME\fP) seconds. If \fI--qrcode\fP or \fI-q\fP is specified, do not print the URI but instead display a QR code using .BR qrencode (1) either to the terminal or graphically if supported. .TP \fBotp validate\fP \fIuri\fP Test a URI string for validity according to the Key Uri Format. For more information about this format, see the documentation at .UR https://\:github.\:com/\:google/\:google-authenticator/\:wiki/\:Key-Uri-Format .UE . .SH OPTIONS .TP \fB\-c\fP, \fB--clip\fP Put the OTP code in the clipboard. .TP \fB\-f\fP, \fB--force\fP Force update and do not wait for user instruction. .TP \fBhelp\fP, \fB\-h\fB, \-\-help\fR Show usage message. .SH SEE ALSO .BR pass(1), .SH AUTHORS .B pass-otp was written by .MT tadfisher@gmail.com Tad Fisher .ME . .SH COPYING This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see .