Skip to content
Closed
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 @@ -14,7 +14,7 @@ import LearnMore from '@components/LearnMore.astro';

Aspire provides a number of project templates to help you create new apps. You can use these templates to create full Aspire solutions, or add individual projects to existing Aspire solutions.

The Aspire templates are available in the [📦 Aspire.ProjectTemplates](https://www.nuget.org/packages/Aspire.ProjectTemplates) NuGet package.
The .NET project templates are available in the [📦 Aspire.ProjectTemplates](https://www.nuget.org/packages/Aspire.ProjectTemplates) NuGet package. Some templates, such as `aspire-py-starter`, are provided by the Aspire CLI and aren't included in the NuGet package.

## Available templates

Expand Down Expand Up @@ -69,14 +69,26 @@ The service defaults project template takes a `FrameworkReference` dependency on

## Install the Aspire templates

The Aspire templates are included with the Aspire workload. To install the templates, run the following command:
### Aspire CLI (recommended)

The Aspire CLI installs templates on demand when you run `aspire new`. To create a project or solution, see the [creation examples](#create-solutions-and-projects-using-templates).

To use a specific version of the project templates, pass the `--version` option. You can also use `--source` to select a NuGet source.

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

### .NET CLI (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:
Comment thread
IEvangelist marked this conversation as resolved.
Resolved

```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:
Comment thread
IEvangelist marked this conversation as resolved.
Resolved

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