2fa is a two-factor authentication command line tool.
go get github.com/jimyag/2fa@latest
or download the binary from https://github.com/jimyag/2fa/releases
Add a 2fa key
2fa add <name> <key>
2fa add jimyag 4LDRN6EUDSF3RNV7
Get a 2fa key and copy to clipboard
2fa get <name> [--copy/-c]
2fa get jimyag
2fa get jimyag --copy
List all 2fa keys and display in a table
2fa list
2fa list
+--------+--------+------------+-----------+
| NAME | TOTP | LIFETIME/S | NEXT TOTP |
+--------+--------+------------+-----------+
| jimyag | 056907 | 2 | 134552 |
+--------+--------+------------+-----------+
Delete a 2fa key
2fa del <name>
2fa del jimyag