CLI Command for Two Factor Authentication.
clone this repository
$ npm install ok2fa -g
Usage: 2fa [options] [command]
Options:
-v, --version output the current version
-h, --help display help for command
Commands:
add Add platform 2fa key
generate Generate 2fa code.
list List all platform
remove Remove platform ga key
help [command] display help for command
Example call:
$ 2fa --help
$ 2fa add
? Please input platform name: test1
? Please input 2fa authentication key: **********
SUCCESS Add platform test1 success.
✨ Done in 33.32s.
$ 2fa remove
? Please select platform name to remove: test1
SUCCESS Remove platform 'test1' success.
Help:
$ 2fa generate
? Please select platform name: npm
Generate 2fa code for npm:
928576
Auto copy 2fa code to clipboard success.
Also you can omit generate
word, like:
$ 2fa
MIT License