Skip to content

simple TOTP CLI, powered by keychain of macOS

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

simnalamburt/macos-totp-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macos-totp-cli

macos-totp-cli is a simple TOTP CLI, powered by keychain of macOS.

Installation

brew install simnalamburt/x/totp

totp is also provided as a single static universal binary. Whether you have an Mac with Apple silicon or Intel-based Mac, you can install totp by downloading just one file.

curl -LO https://github.com/simnalamburt/macos-totp-cli/releases/download/v1.0.1/totp && chmod +x totp

Usage

$ totp
Usage:
  totp [command]

Available Commands:
  completion  generate the autocompletion script for the specified shell
  delete      Delete a TOTP code
  get         Get a TOTP code
  help        Help about any command
  list        List all registered TOTP codes
  scan        Scan a QR code image

Flags:
  -h, --help   help for totp

Use "totp [command] --help" for more information about a command.

$ totp scan google ./image.jpg
Given QR code successfully registered as "google".

$ totp add github
Type secret: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Given secret successfully registered as "github".

$ totp list
google
github

$ totp get google
123456

$ totp delete google
Successfully deleted "google".

 


macos-totp-cli is primarily distributed under the terms of both the Apache License (Version 2.0) and the MIT license. See COPYRIGHT for details.

About

simple TOTP CLI, powered by keychain of macOS

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published