otp-cli

command module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

otp-cli

Generate OTP Code Tool.

Install

By Go Get
go install github.com/chyroc/otp-cli@latest
By Brew
brew tap chyroc/tap
brew install chyroc/tap/otp-cli
By Docker
docker pull ghcr.io/chyroc/otp-cli

Usage

NAME:
   otp-cli - generate otp client

USAGE:
   otp-cli [global options] command [command options] [arguments...]

COMMANDS:
   version    show otp-cli version
   set-scope  set scope secret
   del-scope  delete scope secret
   help, h    Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --secret value, -s value       otp secret text [$OTP_SECRET]
   --secret-file value, -f value  otp secret file [$OTP_SECRET_FILE]
   --scope value                  otp scope [$OTP_SCOPE]
   --copy, -c                     copy to clipboard (default: false) [$OTP_COPY]
   --quiet, -q                    not output to console (default: false) [$OTP_QUIET]
   --help, -h                     show help
  • generate from secret text string
otp-cli -s '<secret>'
  • generate from secret file
otp-cli -f '<secret file>'
  • generate from scope
# first: config scope
otp-cli set-scope --name <scope> --secret <secret>

# second: generate
otp-cli --scope <scope>
  • 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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址