toni
API Reference

toni-cli

API reference for the Toni CLI tool.

Installation

cargo install toni-cli

Commands

toni new

toni new <project-name>

Scaffolds a new Toni project. Creates:

  • Cargo.toml with framework dependencies
  • src/main.rs
  • src/app_module.rs
  • src/app_controller.rs
  • src/app_service.rs

toni generate

toni generate <type> <name>
TypeCreates
modulesrc/<name>/<name>_module.rs with #[module]
controllersrc/<name>/<name>_controller.rs with #[controller]
servicesrc/<name>/<name>_service.rs with #[injectable]

Version

toni --version
toni --help

On this page