Skip to content
Clean Minimal API
Lean Mean Clean Apps

Five templates, one search box. Everything in the docs is in here, including the bits we hoped you'd skim.

Try one of these

Results say which template they came from, so you won't end up reading about Lambda when you wanted GraphQL. Again.

Template options

Terminal window
dotnet new cleanminimalapi --name <NAME> [--authorName <AUTHOR>] [--authority <URL>] [--audience <URL>] [--output <PATH>]
Option Default What it changes
--name, -n The current folder’s name Replaces CleanMinimalApi in every namespace, project, file and folder name, and names the output folder
--authorName Stephen Walsh Sets the Authors and Copyright of the Presentation project, so the assembly credits you instead of us
--authority empty Sets Authentication:Authority in appsettings.json. When it’s set, the API requires JWT bearer tokens issued by that server
--audience empty Sets Authentication:Audience in appsettings.json, the audience those tokens must be issued for
--output, -o A folder named after --name Where the solution is created

The usual dotnet new options such as --dry-run and --force work too. Run dotnet new cleanminimalapi --help for the full list.

Task Command
Install dotnet new install CleanMinimalApi.Template
Check for updates dotnet new update --check-only
Update dotnet new update
Remove dotnet new uninstall CleanMinimalApi.Template

New versions are published on the 1st of each month when something has changed. See the releases for what’s new.