CleanArch.Tool 2.0.3

dotnet tool install --global CleanArch.Tool --version 2.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local CleanArch.Tool --version 2.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CleanArch.Tool&version=2.0.3
                    
nuke :add-package CleanArch.Tool --version 2.0.3
                    

cleanarch — .NET Global Tool

Create production-ready ASP.NET 8 Clean Architecture projects interactively — like Vercel for .NET.

Install

dotnet tool install -g CleanArch.Tool

Usage

cleanarch new

Interactively asks:

  • Project name
  • Database (SQL Server / PostgreSQL / SQLite)
  • Features (Redis, YARP Gateway, Docker, Health Checks, API Versioning...)
  • Auth type (JWT / OAuth / Both)
  • Push to GitHub (optional)

What gets generated

MyApp/
├── src/
│   ├── MyApp.Domain/          # Entities, Value Objects, Domain Events
│   ├── MyApp.Application/     # CQRS Commands & Queries (MediatR)
│   ├── MyApp.Infrastructure/  # EF Core, Redis, JWT, BCrypt
│   ├── MyApp.API/             # ASP.NET 8 Web API + Swagger
│   └── MyApp.Gateway/         # YARP Reverse Proxy (optional)
├── tests/
│   └── MyApp.UnitTests/
├── docker-compose.yml
└── MyApp.sln

Scaffold new entities

cleanarch scaffold Product Order Category

Generates full CQRS boilerplate: Entity, Commands, Queries, Controller, EF Config. Run from anywhere inside a generated project — the tool walks up to find the .sln.

Run

cd MyApp
docker-compose up -d --build
# or
dotnet run --project src/API

Architecture

  • CQRS via MediatR with Logging → Validation → Caching pipeline
  • DDD — Aggregate Roots, Value Objects, Domain Events
  • JWT Auth with refresh tokens stored in HttpOnly cookies
  • Redis distributed caching with automatic cache-aside pattern
  • YARP reverse proxy with round-robin load balancing and rate limiting
  • Result pattern — no exceptions for business failures
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.0.3 106 5/14/2026