Getting Started
This guide walks you through installing cli-template and running your first command.
Prerequisites
Section titled “Prerequisites”- Rust 1.70+ (stable) — required only if building from source.
- Node.js 18+ — required only if using the npm wrapper.
Installation
Section titled “Installation”Option 1: Cargo (Recommended for Rust Users)
Section titled “Option 1: Cargo (Recommended for Rust Users)”cargo install cli-templateOption 2: npm (Cross-Platform)
Section titled “Option 2: npm (Cross-Platform)”npm install -g @dallay/cli-templateThe npm wrapper automatically downloads the pre-built binary for your platform.
Option 3: Docker
Section titled “Option 3: Docker”docker pull yacosta738/cli-template:latestOption 4: Build from Source
Section titled “Option 4: Build from Source”git clone https://github.com/dallay/cli-template.gitcd cli-templatecargo build --releaseThe binary will be available at target/release/cli-template.
Verify Installation
Section titled “Verify Installation”cli-template --versionFirst Command
Section titled “First Command”Run the help command to see available subcommands:
cli-template --helpTry the greet command:
cli-template greet --name "World"Expected output:
Hello, World!Next Steps
Section titled “Next Steps”- Learn about all available commands in the Usage guide.
- Understand the project structure in the Architecture page.
- Read the complete CLI Reference.