otp-cli
otp-cli is a tool for generate otp code in terminal.
Install
go get github.com/chyroc/otp-cli
check
otp-cli version # expect output: otp-cli version v0.3.0
Usage
NAME:
otp-cli - generate otp client
USAGE:
main [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--secret value, -s value otp secret text
--secret-file value, -f value otp secret file
--copy, -c copy to clipboard (default: false)
--quiet, -q not output to console (default: false)
--help, -h show help (default: false)
- generate from secret text string
otp-cli -s '<secret>'
- generate from secret file
otp-cli -f '<secret file>'
- generate and copy to clipboard
otp-cli -s '<secret>' -c
- generate ,copy to clipboard and not output to console
otp-cli -s '<secret>' -c -q