Start

CLI

Project generation and inspection commands.

CLI

cargo-nidus provides project generation and source inspection commands:

cargo nidus new hello-nidus
cargo nidus check
cargo nidus routes
cargo nidus graph
cargo nidus openapi
cargo nidus expand --dry-run
CommandPurposeExpected output
cargo nidus new <name>create a starter servicea Cargo project with src/main.rs, one module, one controller, and one injected service
cargo nidus checkvalidate generated project structuresuccess when crate roots, generated modules, and feature directories are consistent
cargo nidus routesinspect controller route metadataHTTP methods, normalized paths, summaries, guards, pipes, and validation markers when present
cargo nidus graphinspect module metadataroot and feature modules plus imports, providers, controllers, and exports
cargo nidus openapirender OpenAPI JSON from route metadataa JSON document with configurable title and version
cargo nidus expand --dry-runshow the macro expansion commandthe cargo expand invocation without running it

The CLI is source-driven. It inspects Rust files and macro metadata rather than depending on hidden runtime registration. Use it before commits when route shape, module graph shape, or OpenAPI output matters.