Linux command
gotp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show
gotp show [account-name]
Add
gotp add [name] [secret-key]
Generate
gotp qr [account-name]
List
gotp list
说明
gotp is a command-line TOTP (Time-based One-Time Password) authenticator. It stores and generates 2FA/MFA codes for accounts without requiring a phone or browser extension. The tool encrypts stored secrets and can generate QR codes for easy mobile app setup.
参数
- show _NAME_
- Show current TOTP code for account
- add _NAME_ _SECRET_
- Add new TOTP account
- remove _NAME_
- Remove account
- list
- List all accounts
- qr _NAME_
- Generate QR code for account
- export
- Export accounts (encrypted)
- import _FILE_
- Import accounts from file
- -c, --config _FILE_
- Configuration file path
- --clip
- Copy code to clipboard
- -v, --version
- Display version and exit
- -h, --help
- Display help and exit
FAQ
What is the gotp command used for?
gotp is a command-line TOTP (Time-based One-Time Password) authenticator. It stores and generates 2FA/MFA codes for accounts without requiring a phone or browser extension. The tool encrypts stored secrets and can generate QR codes for easy mobile app setup.
How do I run a basic gotp example?
Run `gotp show [account-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does show _NAME_ do in gotp?
Show current TOTP code for account