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. Choose the package manager that fits your environment — Homebrew, npm, NuGet, WinGet, or mise — or use the install script for direct setup.
Before installing the Aspire CLI, ensure you have the required prerequisites set up.
Install with a package manager
Section titled “Install with a package manager”Install the Aspire CLI with a package manager to manage it alongside your other developer tooling. Choose the option that fits your environment:
Install the Aspire CLI with Homebrew on macOS (Apple silicon and Intel).
brew install --cask microsoft/aspire/aspireInstall the Aspire CLI from npm when you manage developer tooling with npm. This option requires Node.js.
npm install -g @microsoft/aspire-cliThe same command works on Windows, macOS, and Linux (including musl-based distributions such as Alpine). npm selects the correct native binary for your operating system and architecture automatically.
To update an npm-based install, run:
npm install -g @microsoft/aspire-cli@latestInstall the Aspire CLI as a .NET global tool when you manage developer tooling with the .NET SDK. This option requires the .NET SDK.
dotnet tool install -g Aspire.CliThe CLI is published to NuGet.org as the Aspire.Cli global tool and works on Windows, macOS, and Linux.
Install the Aspire CLI with the Windows Package Manager (WinGet) on Windows (x64 and Arm64).
winget install Microsoft.AspireInstall the Aspire CLI with mise when you manage developer tooling with a shared tool version manager. The Aspire CLI is available from the mise registry as aspire.
mise use -g aspireInstall with the install script
Section titled “Install with the install script”Download and run the installation script in a single command:
curl -sSL https://aspire.dev/install.sh | bashirm https://aspire.dev/install.ps1 | iexThe 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.
Validation
Section titled “Validation”To validate that the Aspire CLI is installed, use aspire --version 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.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.
See also
Section titled “See also”- aspire-install script reference
@microsoft/aspire-clion npm — run the CLI withnpmornpxaspirecommand reference- Aspire VS Code extension — install the CLI and use Aspire commands from within VS Code