Getting Started¶
Installation¶
Xclif requires Python 3.12 or later.
pip install xclif
Or with uv:
uv add xclif
Why Xclif?¶
Xclif is built around two ideas:
File-based routing — your directory structure is your command tree. No registration, no boilerplate. Drop a file in the right folder and the command exists.
Function signatures as contracts — type annotations and default values define the CLI automatically. The function is the documentation.
Read the The Xclif Manifesto to understand how Xclif compares to Click, Typer, and argparse.
Next Steps¶
Quick Start — build your first CLI in minutes
File-Based Routing — understand file-based routing in depth
API Reference — full API reference