tofa qr
Print a QR code for one account in the terminal, or export QRs for one or all accounts to disk.
Synopsis
tofa qr [FLAGS]
Flags
| Flag | Description |
|---|---|
--all <ALL> | Export all accounts as a migration QR |
--output <PATH> | Save QR as PNG instead of displaying in terminal |
Examples
Print one account's QR in the terminal (scannable from a phone camera held up to the screen):
$ tofa qr GitHub:you
Passphrase: ********
█▀▀▀▀▀█ ▀▀█▀▀ █▀▀▀▀▀█
█ ███ █ ▀ ▀▀ █ ███ █
█ ▀▀▀ █ ▀█▀▄ █ ▀▀▀ █
▀▀▀▀▀▀▀ ▀ ▀▀▀ ▀▀▀▀▀▀▀
...
Save as a PNG instead of printing:
$ tofa qr GitHub:you --output github-you.png
Passphrase: ********
✓ wrote github-you.png
Export every account as a single migration QR (Google Authenticator format — scan it with the Authenticator app to import everything at once):
$ tofa qr --all --output migration.png
Passphrase: ********
✓ wrote migration.png (3 accounts)
Notes
--allis a switch; the<ALL>placeholder above is a clap quirk for bool flags.- Terminal QRs use Unicode block characters and need a font with full block support (most modern fonts do).
- The migration format is the same one Google Authenticator uses — any reader
that handles
otpauth-migration://will accept the result.
See also
tofa export— JSON dump for offline backups.tofa addwith--qr— the inverse: read a QR image.