Aspire.Cli
9.4.1
Prefix Reserved
dotnet tool install --global Aspire.Cli --version 9.4.1
dotnet new tool-manifest
dotnet tool install --local Aspire.Cli --version 9.4.1
#tool dotnet:?package=Aspire.Cli&version=9.4.1
nuke :add-package Aspire.Cli --version 9.4.1
Aspire.Cli Existing & Proposed Surface
Root command: aspire
Global options for debugging:
-d, --debug
-w, --wait-for-debugger
Subcommands:
run (current implementation)
aspire run [--project <PATH_TO_CSPROJ>]
Starts the Aspire app. If no project is specified, it looks in the current directory for a *.csproj. It will error if it can't find a .csproj, or if there are multiple in the directory.
This is a passthrough to dotnet run
via the CLI runner service.
new (current implementation)
aspire new [<TEMPLATE>] [-n|--name <PROJECT_NAME>]
[-o|--output <OUTPUT_PATH>]
[-v|--version <VERSION>]
[-s|--source <NUGET_URL>]
[--prerelease]
Pulls the latest Aspire templates, then creates a new aspire-starter
app, unless a specific dotnet template is specified.
Getting the latest templates is a passthrough to dotnet new install --force
so it always pulls that latest templates even if they are already installed. --version
is used to specify what version of Aspire.ProjectTemplates
to pull, defaulting to 9.2.0
currently as a hack or *-*
if --prerelease
is specified.
Creating the app is a passthrough to dotnet new
and propagates the --name
and --output
options.
add / add <PACKAGE_NAME> (current implementation)
aspire add [<PACKAGE_NAME>] [--project <PATH_TO_CSPROJ>]
[-v|--version <VERSION>]
[--prerelease]
[-s|--source <NUGET_URL>]
Adds an Aspire integration if specified, or lists all possible integrations in a selection prompt. Integrations are given friendly names based on the last section of the package id (ie Aspire.Hosting.Redis
can be referenced as redis
), with specific subsets having prefixes (az- for Aspire.Hosting.Azure.*
, aws- for aws, ct- for communitytoolkit).
If no package name is given, it first runs a passthrough to dotnet package search
. --prerelease
is propagated. --source
if specified will limit the search of packages to the specified package feed. If not specified normal NuGet.config rules will be used to search.
If a package is specified, it runs the search but with the specified package as the passed through arg. If there isn't a direct match, it shows the full selection prompt.
Once a package is selected, or if the specified one is found, it runs dotnet package add
with the fully qualified package ID, and passes through --version
and --prerelease
as appropriate.
build (TODO)
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last Updated | |
---|---|---|---|
9.4.1 | 1,516 | 8/12/2025 | |
9.4.0 | 2,619 | 7/29/2025 | |
9.4.0-preview.1.25378.8 | 133 | 7/29/2025 | |
9.3.1-preview.1.25305.6 | 8,532 | 6/10/2025 | |
9.3.0-preview.1.25265.20 | 4,965 | 5/19/2025 | |
9.2.1-preview.1.25222.1 | 2,456 | 4/24/2025 | |
9.2.0-preview.1.25209.2 | 9,746 | 4/10/2025 |