diff --git a/src/frontend/src/content/docs/get-started/install-cli.mdx b/src/frontend/src/content/docs/get-started/install-cli.mdx index 7da9a2a31..5ec86a5ac 100644 --- a/src/frontend/src/content/docs/get-started/install-cli.mdx +++ b/src/frontend/src/content/docs/get-started/install-cli.mdx @@ -1,6 +1,6 @@ --- title: Install Aspire CLI -description: Learn how to install the Aspire CLI as a native executable or .NET global tool to manage your cloud-native applications. +description: Learn how to install the Aspire CLI as a native executable or NativeAOT .NET tool to manage your cloud-native applications. lastUpdated: true tableOfContents: true --- @@ -43,6 +43,24 @@ At any time, you can reopen the **Install Aspire CLI** command modal from the to 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](/reference/cli/install-script/). +## Install as a NativeAOT .NET tool + + + +The Aspire CLI is also published as a NativeAOT [.NET tool](https://learn.microsoft.com/dotnet/core/tools/global-tools). This install method requires the .NET SDK 10.0.100 or later. + +```bash title="Install the Aspire CLI as a NativeAOT .NET tool" +dotnet tool install -g Aspire.Cli +``` + +Self-update via `aspire update --self` is disabled for .NET tool installs. Update the CLI through the .NET SDK instead: + +```bash title="Update the Aspire CLI" +dotnet tool update -g Aspire.Cli +``` + ## Validation To validate that the Aspire CLI is installed, use `aspire --version` to query Aspire CLI for a version number: