Skip to content

Install and create

Each tool says when you need it; only the SDK is needed to create a solution.

Tool Needed for Check it
.NET 10 SDK, 10.0.403 or later installing the template, creating, building and running the solution dotnet --version
Docker (Docker Desktop or Linux Docker Engine) PostgreSQL, the integration tests (Testcontainers), the SDK container docker version
Aspire CLI 13.5 or later, optional aspire run; dotnet run --project tools/<Name>.AppHost starts the same app aspire --version
PowerShell, optional installing the browsers for the optional Playwright tests pwsh --version

OrbStack, Colima and Podman work too: see Docker engines other than Docker Desktop.

Terminal window
dotnet new install Trellis.Templates
Terminal window
dotnet new update --check-only
dotnet new update
dotnet new uninstall Trellis.Templates

--check-only lists the newer versions without installing them. A newer template changes nothing in a solution you already created: Upgrading regenerates it from the options recorded in its .trellis-template.json and merges the difference.

Terminal window
dotnet new trellis -n Acme.Shop -o Acme.Shop

Name the project with dot-separated parts made of letters and digits, each starting with a letter (Acme.Shop): hyphens, spaces and underscores turn into underscores in namespaces, which analyzer rule CA1707 rejects. In the paths the docs show, Trellis reads as your project's name: tools/Trellis.AppHost becomes tools/Acme.Shop.AppHost.

Add options as flags, such as --use-redis or --include-ui false for an API-only solution. Options lists every one, with what it adds and what to do after creating the solution: with --use-multitenancy, for example, regenerate the initial migration before the first run.

  • First run: the AppHost, the dashboard and the seeded administrator.
  • Try it: an invoice through its whole life in thirteen requests.
  • Architecture: the rings and the rule the tests enforce.

The documentation of Trellis.Templates 0.2.0 · release notes