Topic track
Project Setup & Dependency Management
Build a dependable foundation with packaging, dependency resolution, versioning, virtual environments, and distribution workflows for Python CLI projects.
Content-driven handbook for Python CLI teams
A practical handbook for building, testing, packaging, and shipping production-ready Python command-line applications — 82 in-depth guides across three tracks.
Browse the knowledge base
Start with the track that matches the problem in front of you — every guide links up to its section and sideways to related pages.
Topic track
Build a dependable foundation with packaging, dependency resolution, versioning, virtual environments, and distribution workflows for Python CLI projects.
Topic track
Choose frameworks, structure command trees, and design extensible, fast-starting command-line systems that can scale with your product or team.
Topic track
Improve validation, config loading, error handling, logging, and terminal rendering so Python CLIs stay predictable for both humans and automation.
New in this release
Testing, pipes, help output and standalone distribution — the parts of a CLI people reach for once the tool has users.
Invoke commands in-process with CliRunner, isolate the filesystem and network, and keep a suite fast enough to run before every push.
Read piped input, keep stdout free of narration, emit stable JSON, and survive a downstream command that exits early.
Write help people can scan, put runnable examples in an epilog, generate man pages, and deprecate flags without breaking scripts.
Ship to users without Python: PyInstaller, shiv zipapps, a cross-platform release matrix, and Homebrew or Scoop packaging.
How to use the handbook
Go straight to the guide. Every page opens with the answer before the explanation, so the first screen is usually enough to get unblocked.
Follow the recommended path on each track overview, in order. It front-loads the decisions that are expensive to reverse: layout, locking, and the shape of the command tree.
Run the eight-invocation audit at the end of the input and terminal UX overview. Each failure points at the guide that fixes it.