Skip to content

cli-template

Welcome to the cli-template documentation. This is a Rust CLI tool built with Clap and Tokio, designed as a template for building production-ready command-line applications.

  • Getting Started — install and run your first command.
  • Usage — learn about available commands and options.
  • Architecture — understand the project structure and design decisions.
  • CLI Reference — complete reference for all commands and flags.
  • Contributing — how to contribute to this project.
  • Cross-platform — runs on macOS, Linux, and Windows.
  • Fast — written in Rust for maximum performance.
  • Type-safe CLI — powered by Clap derive macros.
  • Async runtime — built on Tokio for concurrent operations.
  • Structured logging — tracing with environment-based filtering.
  • Docker support — multi-stage Alpine-based container image.
  • npm distribution — TypeScript wrapper for cross-platform installation.
Terminal window
# Via Cargo
cargo install cli-template
# Via npm
npm install -g @dallay/cli-template

See the Getting Started guide for more details.