https://github.com/yugasun/2fa
CLI Command for Two Factor Authentication.🚀
https://github.com/yugasun/2fa
2fa cli two-factor-authentication
Last synced: about 1 year ago
JSON representation
CLI Command for Two Factor Authentication.🚀
- Host: GitHub
- URL: https://github.com/yugasun/2fa
- Owner: yugasun
- Created: 2022-02-17T03:35:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-31T02:02:45.000Z (over 2 years ago)
- Last Synced: 2025-04-10T22:53:48.208Z (about 1 year ago)
- Topics: 2fa, cli, two-factor-authentication
- Language: TypeScript
- Homepage:
- Size: 566 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Two Factor Authentication
[](http://www.npmtrends.com/%40ygkit%2F2fa)
[](http://www.npmtrends.com/%40ygkit%2F2fa)
CLI Command for Two Factor Authentication.
- [Two Factor Authentication](#two-factor-authentication)
- [Demo](#demo)
- [Installation](#installation)
- [Usage](#usage)
- [Add Platform](#add-platform)
- [Remove Platform](#remove-platform)
- [Generate](#generate)
- [License](#license)
## Demo

## Installation
```bash
$ npm i @ygkit/2fa -g
```
## Usage
```bash
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
```
### Add Platform
```bash
$ 2fa add
? Please input platform name: test1
? Please input 2fa authentication key: **********
SUCCESS Add platform test1 success.
✨ Done in 33.32s.
```
### Remove Platform
```bash
$ 2fa remove
? Please select platform name to remove: test1
SUCCESS Remove platform 'test1' success.
```
### Generate
Help:
```bash
$ 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:
```bash
$ 2fa
```
## License
MIT License
Copyright (c) 2022 @yugasun.