3 releases

0.2.2 Dec 6, 2023
0.2.1 Jun 14, 2020
0.2.0 Jun 7, 2020

#174 in Authentication

Download history 7/week @ 2023-11-30 3/week @ 2023-12-07 36/week @ 2024-02-22 16/week @ 2024-02-29

52 downloads per month

MIT license

36KB
871 lines

MFA-CLI

A CLI client for MFA It's a MFA code manager. You can manage MFA accounts and its secret code.

Install

Download a latest mfa-cli from mfa-cli.zip link on below releases page. https://github.com/tkhr0/mfa-cli/releases

Then unzip the file and move binary to $PATH dir.

$ unzip mfa-cli.zip
$ ls ./target/release/mfa-cli
./target/release/mfa-cli

$ mv target/release/mfa-cli /usr/local/bin
$ ls /usr/local/bin/mfa-cli
/usr/local/bin/mfa-cli

$ mfa-cli -V
MFA CLI 0.2.0

Usage

# Add a new profiles
$ mfa-cli profile add PROFILE_NAME SECRET_CODE

# Show MFA code for the profile
$ mfa-cli show PROFILE_NAME
123456

# After showing code, watch for changes
$ mfa-cli show -w PROFILE_NAME
123456

# Show help
$ mfa-cli help

mfa-cli store config to file. You will manage the directory by env variables. Here are the values and priorities you can specify.

  1. MFA_CLI_CONFIG_HOME
  2. XDG_CONFIG_HOME
  3. HOME
  4. Current directory (If mfa-cli couldn't find these values, it will use current directory)

License

This software is released under the MIT License.

Dependencies

~8–21MB
~285K SLoC