CLI Scaffolding
Scaffold solutions, modules, entities, commands, queries, and endpoints with a single command. Aspire-ready out of the box.
CLI Reference
Scaffold production-ready modular monoliths in seconds
dotnet tool install --global ModulusKit.Cli# Create a new modular monolith
modulus init EShop --aspire --transport rabbitmq
# Add feature modules
cd EShop
modulus add-module Catalog
modulus add-module Orders
# Scaffold CQRS components
modulus add-entity Product --module Catalog --aggregate --properties "Name:string,Price:decimal"
modulus add-command CreateProduct --module Catalog --result-type Guid
modulus add-query GetProductById --module Catalog --result-type ProductDto
modulus add-endpoint CreateProduct --module Catalog --method POST --route / --command CreateProduct --result-type Guid
# Run it
dotnet run --project src/EShop.WebApi