Rust CLI
Build a Rust CLI end-to-end
This walkthrough takes a Rust CLI from templates init to a tagged release in eight commands.
1. Scaffold
fledge templates init my-cli -t rust-cli
cd my-cli
2. Configure Lanes
Initialize your project lanes. fledge will detect your Cargo.toml and suggest a standard set of steps.
fledge lanes init
This creates a fledge.toml with build, test, lint, and ci definitions.
3. Run the CI pipeline
Verify everything works locally before you even think about pushing.
fledge lanes run ci
4. Feature work
Start a new branch using the work command. This ensures your branch naming follows project conventions.
fledge work start auth-fix
5. Commit with AI
Done with your changes? Let fledge’s AI review your diff and draft a conventional commit message.
fledge work commit --ai
6. Push and PR
Push your branch and open a PR in one flow (requires fledge-plugin-github).
fledge work push
fledge github prs create --fill
7. Release
Once merged, cut a new version. fledge will bump your Cargo.toml, generate the changelog, and create a git tag.
fledge release --dry-run
fledge release
8. Profit
Your Rust CLI is now versioned, tagged, and ready for distribution.