GitPedia

Craftsman

A .NET scaffolding tool to help you stop worrying about boilerplate and focus on your business logic ๐Ÿš€

From pdevito3ยทUpdated June 5, 2026ยทView on GitHubยท

Craftsman is the workhorse behind the [Wrapt](https://wrapt.dev) framework and provides a suite of CLI commands for quickly scaffolding out new files and projects for your .NET Web APIs with simple CLI commands and configuration files. The project is written primarily in C#, distributed under the MIT License license, first published in 2020. It has gained significant community traction with 1,172 stars and 73 forks on GitHub. Key topics include: automated-test-generation, automated-testing, cli, cli-commands, cqrs.

Latest release: v0.28.3
December 6, 2024View Changelog โ†’

Craftsman Scaffolds Your Boilerplate!

Craftsman is the workhorse behind the Wrapt framework and provides a suite of CLI commands for quickly scaffolding out new files and projects for your .NET Web APIs with simple CLI commands and configuration files.

<p> <a href="https://github.com/pdevito3/craftsman/releases"><img src="https://img.shields.io/nuget/v/craftsman.svg" alt="Latest Release"></a> <a href="https://github.com/pdevito3/craftsman/blob/master/LICENSE.txt"><img src ="https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000" alt="License"></a> <a href="https://discord.gg/TBq2rVkSEj" target="\_parent"> <img alt="" src="https://img.shields.io/badge/Discord-Wrapt-%235865F2" /> </a> </p>

Quickstart

  • Make sure you have the .NET 8 SDK installed, along with EF Core
  • Install the craftsman tool
bash
dotnet tool install -g craftsman
  • Spin up an example project
bash
craftsman new example MyFirstProject

Documentation

For all the documentation on how to use Craftsman, visit wrapt.dev.

Upcoming Features

You can find some highlights below. I have some reminement items in the pipe and I'm working through a deep example project the really dogfood things and will be making updates around my finding from there.

Have a request for something you don't see in the project? Join our discord and let's talk about it!

Some 0.26 highlights

โœ… Primary Constructors

โœ… Updated API Versioning

Some 0.25 highlights

โœ… .NET 8 scaffolding

โœ… Archicture test enhancement

โœ… Remove obsolete BFF commands

โœ… Fix test actions

Some 0.24 highlights

โœ… Logging enhancements and masking

โœ… Dependabot and Github Actions for tests

โœ… string[] support for Postgres

โœ… Value Object property scaffolding

Some 0.23 highlights

โœ… Moq -> NSub

โœ… New GetAll feature

โœ… Hangfire scaffolding

Some 0.22 highlights

โœ… Move from Sieve to QueryKit

โœ… TestContainers updated

โœ… Records for queries and commands and DTOs

โœ… Relationships overhaul

Some 0.21 highlights

โœ… New default error handler middleware (existing still optional)

โœ… Mapster -> Mapperly

Some 0.20 highlights

โœ… Intermediate model to not pass DTOs to domain

โœ… Specification support

Some 0.19 highlights

โœ… Test projects updated to use XUnit

โœ… .NET 7

โœ… Integration tests have better service collection scoping and now have a service collection per test. This makes service mocking possible without clashing with other tests

โœ… Options Pattern Configuration

Some 0.18 highlights

โœ… Environment Service

โœ… Built in Migrations

โœ… Various testing and other improvements

Some 0.17 highlights

โœ… Users and Roles managed in each boundary (AuthN still separate)

โœ… New Email Value Object

โœ… Functional Tests use Docker DB and has other cleanup items

โœ… NextJS template (still a WIP and not documented, but you can find the sandbox for things here and poke through the Craftsman code if you'd like. Can answer questions in out Discord as well.)

Some v0.16 highlights

โœ… Testing Optimizations

โœ… Common Value Object Scaffolding

โœ… Auth Server rewrite with Keycloak

โœ… Move permission guards to feature

โœ… Migrate Automapper to Mapster

Some v0.15 highlights

โœ… Updated CLI command structure

โœ… OpenTelemetry & Jaeger Tracing

โœ… Built in Domain Event support (with unit test scaffolding)

โœ… Moved to Program.cs only format

โœ… Added repository & unit of work abstractions for better testing and validation

โœ… SmartEnum property scaffolding support

Some v0.14 highlights

โœ… Duende BFF scaffolding

โœ… React scaffolding

โœ… Dockerfile and Docker Compose scaffolding

Some v0.13 highlights

โœ… DDD promoted entities (private setters, factory methods, associated fakers)

โœ… Huge permissions upgrade. Significantly simplified setup which resulted in a new library (HeimGuard) that can be used in any .NET project.

โœ… New register:producer command

โœ… Added soft delete capability

โœ… Added Shared Kernel

Some v0.12 highlights

โœ… .NET 6 Scaffolding

โœ… Docker utility updates for integration tests using Fluent Docker ๐Ÿณ

โœ… add:feature enhancement to add more than just ad-hoc features

โœ… new:example command to generate example projects with associated templates

โœ… Auth Server Scaffolding (In-Memory)

โœ… Auditable entities

Support

If Wrapt and Craftsman are saving you time and helping your projects, consider sponsoring me on Github to support ongoing Wrapt development and make it even better!

Contributing

Time is of the essence. Before developing a Pull Request I recommend opening a new topic for discussion. I also haven't had enough PR interest to take the time and put together a contributing.md, but if you are interested, I will definitely put together a detailed writeup.

Contact Me

Sometimes Github notifications get lost in the shuffle. If you file an issue and don't hear from me in 24-48 hours feel free to ping me on twitter or Discord (pdevito3#4244). We also have own discord channel now for easy contact with me and larger community discussions!

Contributors

Showing top 8 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from pdevito3/craftsman via the GitHub API.Last fetched: 6/14/2026