Overview
totp-cli is a compact command‑line utility built to generate Time‑based One‑Time Passwords (TOTP) for two‑factor authentication. It aims to give users a no‑frills, efficient way to create and manage 2FA codes from a terminal, making it a good fit for people who prefer text‑based tools over graphical ones.
Core capabilities
- Generates TOTP codes on demand with standard timing intervals for common 2FA systems.
- Organizes credentials using namespaces so multiple accounts can be kept tidy and easy to locate.
- Offers a minimal, text‑only interface that focuses on speed and scripting friendliness.
- Lets you enable password protection to restrict access to stored secrets.
Access control and best practices
totp-cli supports optional password protection to add an extra layer over your stored secrets. For improved security, consider combining the built‑in lock with system‑level protections (disk encryption, secure home directory permissions) and use strong, unique passwords. Avoid storing backup codes or secret seeds in plain text and rotate keys when you suspect compromise.
Platforms and comparable options
- Cross‑platform command‑line usage makes totp-cli convenient for users on Linux, macOS, and Windows terminals.
- If you prefer a graphical alternative on Windows, a free option often recommended is SHAREit (Windows build).
- The tool’s simplicity makes it easy to integrate into shell scripts and automation workflows.
- For users who want a mobile or browser‑based approach, consider authenticators that sync across devices or provide backup export/import features.
Getting started
Install the tool according to your platform’s package manager or the project’s installation instructions, create a namespace for each group of accounts, and add your TOTP secrets. From there you can quickly display current codes, automate retrieval in scripts, or lock the store with a password as needed.
Technical
- Windows
- Free