Cairn.Templates 0.11.0

dotnet new install Cairn.Templates@0.11.0
                    
This package contains a .NET Template Package you can call from the shell/command line.

Cairn.Templates

dotnet new templates for Cairn — opt-in HATEOAS for ASP.NET Core.

Install

dotnet new install Cairn.Templates

Create a project

dotnet new cairn-api -o Orders.Api
cd Orders.Api
dotnet run

This scaffolds an ASP.NET Core minimal API already wired for hypermedia: clean DTOs with their link rules declared separately in LinkConfig<T> classes, a state-conditional cancel affordance, compile-checked routes via the generated Routes.* catalog, an embedded collection, and a HAL-FORMS create form. Start at /, or — with the explorer enabled (the default) — browse the API interactively at /explorer.

Options

Option Default Description
-f, --framework net10.0 Target framework: net10.0, net9.0, or net8.0 (LTS).
--explorer true Include the browsable HAL Explorer at /explorer (Development only).
--openapi false Document the hypermedia in Swagger (Cairn.Swashbuckle) and serve Swagger UI in Development.
# An LTS project without the explorer, with Swagger docs:
dotnet new cairn-api -o Orders.Api -f net8.0 --explorer false --openapi true

Learn more

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.11.0 333 7/14/2026