Domain
Aggregates, value objects, domain events, exceptions. Zero external dependencies.
public abstract class Entity<TId>A .NET global tool that scaffolds production-ready Clean Architecture projects — with CQRS, Result pattern, domain events, and FluentValidation — in seconds.
Each generated project follows the full Clean Architecture layering convention — no shortcuts, no coupling shortcuts.
Aggregates, value objects, domain events, exceptions. Zero external dependencies.
public abstract class Entity<TId>Command/query handlers (CQRS), validation decorators, logging decorators, FluentValidation.
ICommandHandler<TCommand, TResult>EF Core DbContext, migrations, domain event dispatcher, Serilog sinks.
class AppDbContext : DbContextMinimal API endpoints, global exception handler, health checks, Scalar OpenAPI.
public interface IEndpointResult pattern, Error types, Entity base, ValueObject base, IDomainEvent.
Result<T>.Failure(Error.NotFound(...))Template
Recommended
From scratch
Command and query handlers with decorator pipeline — validation → logging → handler.
Result<T>, Error, ValidationError, ErrorType — zero exceptions in flow control.
Dispatcher, IDomainEvent, handler registration, transactional publishing.
DbContext, IApplicationDbContext abstraction, multi-DB support (SQL Server + PostgreSQL).
IEndpoint convention, endpoint scanning, custom problem results.
Structured logging to MSSQL/Console, /health endpoint, correlation IDs.
Everything in the free tier, plus advanced patterns for teams building serious systems.
Add new aggregates to existing projects without touching existing files.
Built-in tenant isolation patterns with middleware scaffolding.
EventStore-ready aggregate base, snapshots, event replay scaffolding.
Transactional outbox table, dispatcher, and EF Core interceptor.
Pre-wired ArchUnitNET test project enforcing layer dependency rules.
GitHub Actions workflows for build, test, NuGet publish, Docker build.
No spam. First access when Pro ships.
Add the tool globally to your .NET CLI.
$ dotnet tool install -g CleanArchitectureGeneratorRun interactively, or pass flags to skip all prompts.
$ dotnet run --project CleanArchitectureGenerator -- new -n MyApp -p postgresqlOpen in VS or Rider. Run. Build features — not boilerplate.
$ cd YourProject && dotnet runThe template repository is fully open-source. Contribute patterns, raise issues, improve the conventions.
Everything you need to configure, connect, and deploy correctly — without digging through the code.