Install Aspire CLI
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. The Aspire CLI requires the .NET 10.0 SDK.
Before installing the Aspire CLI, ensure you have the required prerequisites set up.
Install as a native executable
Section titled “Install as a native executable”The Aspire CLI is installed using an installation script available for Bash and PowerShell.
Alternatively, you can download the script and run it as a two-step process:
- 
Open a terminal. 
- 
Download the script and save it as a file: Terminal window curl -sSL https://aspire.dev/install.sh -o aspire-install.shTerminal window irm https://aspire.dev/install.ps1 -OutFile aspire-install.ps1
- 
Run the script to install the stable release build of Aspire. You should see output similar to the following snippet: Output Downloading from: https://aka.ms/dotnet/9/aspire/ga/daily/aspire-cli-linux-x64.tar.gzAspire CLI successfully installed to: /home/username/.aspire/bin/aspireAdded /home/username/.aspire/bin to PATH for current sessionAdded /home/username/.aspire/bin to PATH in /home/username/.bashrcThe aspire cli is now available for use in this and new sessions.Output Downloading from: https://aka.ms/dotnet/9/aspire/ga/daily/aspire-cli-win-x64.zipAspire CLI successfully installed to: C:\Users\name\.aspire\bin\aspire.exeAdded C:\Users\username\.aspire\bin to PATH for current sessionAdded C:\Users\username\.aspire\bin to user PATH environment variableThe aspire cli is now available for use in this and new sessions.
Install as a .NET global tool
Section titled “Install as a .NET global tool”Use the dotnet tool command to install the Aspire CLI global tool. The name of the global tool is Aspire.Cli.
- 
Open a terminal. 
- 
Run the following command to install Aspire CLI: .NET CLI dotnet tool install -g Aspire.Cli --prerelease
Validation
Section titled “Validation”To validate that the global tool is installed, use the --version option to query Aspire CLI for a version number:
aspire --versionIf that command works, you’re presented with the version of the Aspire CLI tool:
13.0.0+{commitSHA}Learn more by reading the Aspire CLI reference documentation.