Getting Started¶
This guide takes you from zero to a working lets CLI in under 5 minutes.
Install¶
This installs the lets binary to ~/.cargo/bin/.
Create your first lets.kdl¶
In your project root, run:
This detects your project type and generates a starter lets.kdl. For a Rust project, you'll get:
description "My project tasks"
build "cargo build"
test "cargo test"
run "cargo run"
lint "cargo clippy -- -D warnings"
Try it out¶
# See all available commands
lets --help
# See commands as a tree
lets --list
# Run a command
lets build
# Get help for a specific command
lets build --help
Set up shell completions¶
For the best experience, add dynamic completions to your shell. This gives you tab completion for all your commands, arguments, and flags — and it updates automatically when you change your lets.kdl.
Or let lets generate the line for you:
Restart your shell and try pressing Tab after lets — you should see your commands.
fzf integration
If you use fzf-tab with zsh, lets commands will automatically appear in the fzf fuzzy finder with descriptions. No extra configuration needed.
Add descriptions¶
One-liner commands are great for getting started, but you'll want help text. You can add it inline:
build "cargo build" description="Build the project"
test "cargo test" description="Run the test suite"
Or use block syntax for more options:
Both produce the same result in lets --help.
What's next?¶
- KDL Primer — learn the config language
- Commands — one-liners, blocks, subcommands
- Arguments & Flags — typed inputs with validation
- Orchestration — deps, steps, hooks