Rust-Based CLI Tools
Modern terminals mix classic Unix tools with Rust replacements: faster search, better defaults, and ergonomics that compound daily.
Search across all documentation pages
Modern terminals mix classic Unix tools with Rust replacements: faster search, better defaults, and ergonomics that compound daily.
# Common installs (macOS brew example)
brew install ripgrep fd bat eza starship
# Rust ecosystem via cargo
cargo install cargo-watch cargo-nextest-cli sqlx-cli --locked
cargo install cargo-binstall # faster prebuilt installsWhen to reach for this:
cargo watch) matching CI# Dev loop
cargo watch -x 'test -p billing-api'
cargo nextest run --workspace
# DB migrations
sqlx migrate run
sqlx prepare --check
# Pretty file view with syntax
bat src/main.rs
eza -la --git-ignoreWhat this demonstrates:
cargo-watch reruns tests on savenextest parallel test runnersqlx-cli matches runtime sqlx version| Tool | Replaces | Role |
|---|---|---|
rg | grep | Code search |
fd | find | Path discovery |
bat | cat | Syntax-highlighted view |
eza | ls | Git-aware listing |
zoxide | cd | Smart directory jump |
starship | PS1 | Rust/version in prompt |
duf | df | Disk usage overview |
bottom / btm | top | TUI metrics |
cargo-audit, cargo-deny, cargo-outdated, cargo-expand, leptosfmt (if Leptos) - add per project needs.
--locked - surprise dependency breaks. Fix: --locked on install.~/.cargo/bin missing. Fix: rustup shell snippet in profile.rg. Fix: pick one package source.~/.cargo/bin.
| Alternative | Use When | Don't Use When |
|---|---|---|
| GNU coreutils | Minimal container | Daily dev ergonomics |
| Nix dev shell | Exact tool versions | Quick laptop setup |
| mise/asdf | Polyglot pins | rustup-only shops |
No - team lists required vs optional tools in onboarding checklist.
Uses project GitHub releases; verify checksums for security-sensitive orgs.
Stack versions: This page was written for Rust 1.97.0 (edition 2024), Tokio 1.x, Axum 0.8, serde 1.0, sqlx 0.8, clap 4, and Polars 0.46+.
Reviewed by Chris St. John·Last updated Jul 19, 2026