Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,24 @@ The following Aspire project templates are available:
The service defaults project template takes a `FrameworkReference` dependency on `Microsoft.AspNetCore.App`. This may not be ideal for some project types. For more information, see [Aspire service defaults](/get-started/csharp-service-defaults/).
:::

## Install the Aspire templates
## Install templates with Aspire CLI (recommended)

The Aspire templates are included with the Aspire workload. To install the templates, run the following command:
Use `aspire new` to create a project or solution. The Aspire CLI ensures the required templates are installed automatically.

```bash title="Aspire CLI"
aspire new aspire-starter
```

### Install the .NET project templates (dotnet fallback)

If you need to install templates directly into `dotnet`, install the [📦 Aspire.ProjectTemplates](https://www.nuget.org/packages/Aspire.ProjectTemplates) package with the following command:

```bash title=".NET CLI"
dotnet new install Aspire.ProjectTemplates
```

:::tip
To install a specific version of the Aspire templates, use the `::{version}` syntax. For example, to install version 13.1.0, run the following command:
To install a specific version of the .NET templates, use the `::{version}` syntax. For example, to install version 13.1.0, run the following command:

```bash title=".NET CLI"
dotnet new install Aspire.ProjectTemplates::13.1.0
Expand Down