Inspired by https://github.com/yitsushi/totp-cli. Because I need autocomplete in fish.
Bonus: it also copies the token to your clipboard.
- Install
go install github.com/kahnwong/totp@latest
- create a config file via with in
~/.config/totp/totp.sops.yaml
totp:
- org: personal
accounts:
- name: foo
token: XXXXXXXXXXXXXXXXXXXXXXXXX
- name: bar
token: XXXXXXXXXXXXXXXXXXXXXXXXX
generate ORG ACCOUNT
list
orgs
accounts ORG
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