Skip to content

kahnwong/totp

Repository files navigation

totp

Inspired by https://github.com/yitsushi/totp-cli. Because I need autocomplete in fish.

Bonus: it also copies the token to your clipboard.

Setup

  1. Install
go install github.com/kahnwong/totp@latest
  1. create a config file via with in ~/.config/totp/totp.sops.yaml
totp:
  - org: personal
    accounts:
      - name: foo
        token: XXXXXXXXXXXXXXXXXXXXXXXXX
      - name: bar
        token: XXXXXXXXXXXXXXXXXXXXXXXXX

Available commands

generate ORG ACCOUNT
list
    orgs
    accounts ORG

Examples

list orgs

❯ totp list orgs
Available organizations:
  - foo
  - bar

list accounts

❯ totp list accounts foo
Organization: foo
Accounts:
  - a
  - b
  - c

generate

❯ totp generate foo a
XXXXXX

About

CLI TOTP token generator with autocomplete.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages