Install and create
Prerequisites
Section titled “Prerequisites”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.
Install the template
Section titled “Install the template”dotnet new install Trellis.Templatesgit clone https://github.com/Revazi1st/Trellis.gitdotnet new install ./TrellisA folder install records 0.0.0-source as the template version; dotnet new uninstall ./Trellis removes it.
Keep it current, or remove it
Section titled “Keep it current, or remove it”dotnet new update --check-onlydotnet new updatedotnet 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.
Create a solution
Section titled “Create a solution”dotnet new trellis -n Acme.Shop -o Acme.ShopName 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.
Options
Section titled “Options”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