TERMINAL UTILITIES
Zentr CLI.
I built one terminal command for service discovery, status, encrypted sharing, conversion, and Zentr sign-in.
Why I built it
I wanted to share a file, check my services, or convert a recording without opening a browser tab for each task. Zentr CLI brings those things together under one command: zentr.
Install
You'll need Python 3.10 or newer and Git for the installation commands below. Drop also requires Node.js 20.11 or newer on your PATH. I bundle the Drop CLI, so you don't need to install it separately.
Install release 0.4.0 with uv:
uv tool install 'git+https://github.com/zentrdev/zentr-cli.git@v0.4.0'
zentr --helpOr use pipx:
pipx install 'git+https://github.com/zentrdev/zentr-cli.git@v0.4.0'
zentrI distribute the CLI through GitHub Releases, not PyPI. A working OS keyring is needed for browser sign-in.
Use it your way
Run zentr to open the interactive menu. Use the arrow keys and Enter to select an action, Escape to return, and Tab to move between rows or complete file paths. Fully specified commands run directly. Redirected input or output and TERM=dumb disable prompts; incomplete commands then return an argument error. Set NO_COLOR=1 for monochrome output.
| Command | What it does |
|---|---|
zentr services | Browse the live project registry. |
zentr status convert | Check a service's health. |
zentr --json status | Get machine-readable status. |
zentr open convert | Open a registered service. |
zentr docs drop | Open project documentation. |
zentr drop upload photo.png | Share an encrypted file. |
zentr drop text | Share text, including piped input. |
zentr drop get | Download a shared file. |
zentr drop status CODE5 | Check a drop. |
zentr drop shorten | Shorten a URL. |
zentr convert formats | List available conversion IDs. |
zentr convert file voice.wav --to audio-wav-mp3 -o voice.mp3 | Convert a recording. |
zentr --help | See available commands and flags. |
Put global flags before the command. JSON output and the global HTTP timeout do not apply to the bundled Drop commands.
Sign in with Zentr
zentr --login
zentr whoami
zentr --logoutI use browser-based sign-in with S256 PKCE, one-time state, nonce checks and ES256 ID-token validation. Keep localhost port 8787 free and use the browser on the same computer as the CLI. Sessions are stored through your OS keyring, with no plaintext fallback, and currently expire after about 15 minutes. Logout removes the local session, not your browser session or already-issued tokens. Scripts can supply an existing userinfo token through ZENTR_ACCESS_TOKEN.
Privacy and file handling
Drop encrypts files and text locally with AES-256-GCM. The full sharing link, including its fragment, grants access, so keep it private and quote it in your shell. CLI drops are anonymous and temporary even when signed in. Uploads support up to 20 files and 10 GiB, subject to service limits. Downloads verify files and do not overwrite existing ones. URL shortening sends the fragment-free URL and reattaches the fragment locally.
Convert is different: the CLI sends the input to Zentr Convert for server-side processing. It requires a new output file and removes partial output when a transfer fails.
Read more about Drop security, Convert and Zentr Auth.
Source and support
I've published the source code and a full usage guide. If you find a bug, open an issue with the command and error, but leave out tokens and private Drop links.