Salta ai contenuti
Docs Try Aspire
Docs Try

Install Aspire CLI

Questi contenuti non sono ancora disponibili nella tua lingua.

Aspire provides a command-line interface (CLI) tool to help you create and manage Aspire-based apps. The CLI streamlines your development workflow with an interactive-first experience. This guide shows you how to install the Aspire CLI on your system. You can install the CLI with the install script, .NET global tool, or npm. Use the install script for the fastest setup, or choose the package manager that matches your AppHost language.

Before installing the Aspire CLI, ensure you have the required prerequisites set up.

Download and run the installation script in a single command:

Install script (macOS/Linux)
curl -sSL https://aspire.dev/install.sh | bash

The script installs the latest stable release of Aspire CLI. During installation, you might be asked Do you want to continue?. Reply with Y for Yes or A for Yes to All to continue downloading and running the install script. See Validation to verify the installation.

You only need to download the script separately if you want to inspect it or run the installer as separate commands. For more information, see the aspire-install script reference.

The install script works for all AppHost languages. If you prefer to manage the Aspire CLI with a language-specific package manager, use the option that matches your AppHost project:

Use the .NET global tool when you want to manage the Aspire CLI with the .NET SDK in a C# AppHost project. This option requires the .NET SDK.

To install the latest stable release globally, run:

Install with .NET global tool
dotnet tool install -g Aspire.Cli

To validate that the Aspire CLI is installed, use aspire --version to query Aspire CLI for a version number:

Check installed version
aspire --version

If that command works, you’re presented with the version of the Aspire CLI tool:

Aspire CLI — Output
13.4.0+{commitSHA}

The +{commitSHA} suffix indicates the specific commit from which the Aspire CLI was built.

Learn more by reading the Aspire CLI reference documentation.