From 000ba4f00084b8b91f863f376109383aab8b6f28 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Mon, 7 Jan 2019 19:20:34 +0000 Subject: Add man page as specification --- nitrocli-otp-qr.1 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 nitrocli-otp-qr.1 diff --git a/nitrocli-otp-qr.1 b/nitrocli-otp-qr.1 new file mode 100644 index 0000000..7e907d9 --- /dev/null +++ b/nitrocli-otp-qr.1 @@ -0,0 +1,23 @@ +.TH NITROCLI-OTP-QR 1 2019-01-07 +.SH NAME +nitrocli-otp-qr \- read OTP configuration from a QR code and store it on a +Nitrokey device +.SH SYNOPSIS +\fBnitrocli-otp-qr\fR \fIslot\fR [\fIfile\fR] \fB\-\-name \fIname\fR +.SH DESCRIPTION +\fBnitrocli-otp-qr\fR reads one-time password configuration from a QR code and +stores it in an OTP slot on a Nitrokey device using \fBnitrocli\fR(1). + +\fIslot\fR is the number of the OTP slot to store the data in. +\fIfile\fR is the image file to read the QR code from. +If the argument is omitted, \fBimport\fR(1) is called and the user may select a +screen region to capture the QR code from. + +The QR code must contain a otpauth URI as specified by Google Authenticator. + +.SH OPTIONS +.TP +\fB\-\-name \fIname\fR +Set the name to store in the OTP slot. +If this option is not set, \fBzenity\fR(1) is used to query a name +interactively. -- cgit v1.2.3