CleanForge.Scaffold 1.0.3

dotnet tool install --global CleanForge.Scaffold --version 1.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 CleanForge.Scaffold --version 1.0.3
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=CleanForge.Scaffold&version=1.0.3
                    
nuke :add-package CleanForge.Scaffold --version 1.0.3
                    

CF CLI

A fast and developer-friendly command-line tool for scaffolding Clean Architecture projects in .NET.
CF CLI helps you generate a production-ready folder structure, boilerplate code, configuration layers, and best practices โ€” all with a single command.


๐Ÿš€ Features

  • โšก Instant scaffolding of .NET Clean Architecture projects
  • ๐Ÿงฑ Pre-defined domain, application, infrastructure, and API layers
  • ๐ŸŽฏ Best-practice templates based on real-world architecture
  • ๐Ÿ“ฆ Automatic file and folder generation
  • ๐Ÿ”ง Extensible โ€” add your own templates or customize existing ones
  • ๐Ÿ› ๏ธ Simple CLI commands, easy to remember and use
  • ๐Ÿงน Opinionated but flexible project structure

๐Ÿ“ฅ Installation

Install CleanForge as a global .NET tool:

dotnet tool install -g CleanForge.Scaffold

To update to the latest version:

dotnet tool update -g CleanForge.Scaffold

๐Ÿ’ป Usage

Scaffold a new Clean Architecture project:

cleanforge --name MyProject --output ./MyProject
Option Description Default
--name Name of the project to generate CleanForgeProject
--output Output directory for the project Current directory

Then get started with your new project:

cd MyProject
dotnet restore
dotnet run --project MyProject.API

๐Ÿ—๏ธ Project Structure Generated

When you run the CF CLI to scaffold a new project, it generates the following folder structure:

MyCleanArchitectureProject/
โ”œโ”€โ”€ MyCleanArchitectureProject.Domain/
โ”œโ”€โ”€ MyCleanArchitectureProject.Application/
โ”œโ”€โ”€ MyCleanArchitectureProject.Infrastructure/
โ”œโ”€โ”€ MyCleanArchitectureProject.API/
โ””โ”€โ”€ MyCleanArchitectureProject.sln


  • Domain: Contains the core business logic and entities.
  • Application: Contains use cases, services, and application logic.
  • Infrastructure: Contains data access, external services, and implementations.
  • API: Contains the web API layer and controllers.

๐Ÿ“‹ Core Configurations Included

The generated project includes essential configurations for a Clean Architecture setup:

  • Dependency Injection setup for managing service lifetimes and dependencies.
  • Logging configuration for tracking application behavior.
  • Error Handling middleware for consistent error responses.
  • MediatR integration for handling commands and queries.
  • AutoMapper setup for object-to-object mapping.
  • Fluent Validation structure for validating requests.
  • Clean folder boundaries to enforce separation of concerns.
  • Plug-and-play architecture for easy extension and modification.
  • Docker Support with Dockerfiles for containerizing the application.

๐Ÿงฑ Why CF CLI?

CF CLI was created to solve a common problem:

Developers often waste hours or days setting up Clean Architecture manually.

CF CLI solves that problem by offering:

  • โšก Extremely fast scaffolding
  • ๐Ÿ’ฏ Consistent structure across teams
  • ๐Ÿงฉ Plug-and-play architecture
  • ๐Ÿงช Test-ready layout
  • ๐Ÿ“ Pattern discipline (CQRS, DI, SOLID, DDD-friendly)
  • ๐Ÿ”„ No repetitive setup work

Perfect for:

  • ๐Ÿ‘ค Solo developers
  • ๐Ÿ‘ฅ Teams adopting Clean Architecture
  • ๐Ÿข Bootstrapping enterprise applications
  • ๐ŸŽ“ Training new developers or onboarding juniors

๐Ÿค Contributing

Contributions are welcome!

If you'd like to contribute:

  1. Fork the repo
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request
  5. Make sure your PR includes:
  6. Clear description
  7. Relevant screenshots if needed

โญ Support This Project

If CF CLI saves you setup time or helps your team stay consistent, please consider:

  • Starring โญ the repo
  • Sharing it with other .NET developers
  • Opening issues & PRs

Your support motivates future improvements!

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
1.0.3 141 4/3/2026
1.0.2 135 4/1/2026
1.0.1 114 4/1/2026
1.0.0 123 4/1/2026