Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simnalamburt/macos-totp-cli
simple TOTP CLI, powered by keychain of macOS
https://github.com/simnalamburt/macos-totp-cli
Last synced: 15 days ago
JSON representation
simple TOTP CLI, powered by keychain of macOS
- Host: GitHub
- URL: https://github.com/simnalamburt/macos-totp-cli
- Owner: simnalamburt
- License: other
- Created: 2021-10-15T00:47:30.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-03T05:40:19.000Z (4 months ago)
- Last Synced: 2024-10-12T18:56:13.757Z (29 days ago)
- Language: Go
- Size: 84 KB
- Stars: 57
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
macos-totp-cli
========
macos-totp-cli is a simple TOTP CLI, powered by keychain of macOS.### Installation
```bash
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.```bash
curl -LO https://github.com/simnalamburt/macos-totp-cli/releases/download/v1.1.3/totp && chmod +x totp
```### Usage
```console
$ totp
Usage:
totp [command]Available Commands:
add Manually add a secret to the macOS keychain
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
temp Get a TOTP code from a secret without saving it to the keychainFlags:
-h, --help help for totp
-v, --version version for totpUse "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
github$ totp get google
123456$ totp delete google
Successfully deleted "google".$ totp temp
Type secret: ABCDEFGHIJKLMNOPQRSTUVWXYZ
123456
```
--------
*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.[MIT license]: LICENSE-MIT
[Apache License (Version 2.0)]: LICENSE-APACHE
[COPYRIGHT]: COPYRIGHT