aspire update command
Name
aspire update - Update Aspire packages and templates in your project.
Synopsis
aspire update [options]
Description
The aspire update command helps you keep your Aspire projects current by automatically detecting and updating outdated packages and templates. It finds outdated Aspire NuGet packages while respecting channel configurations and intelligently handles complex dependency graphs.
The command performs the following:
- Detects outdated Aspire NuGet packages in your project
- Respects your configured Aspire channel (preview, stable, etc.)
- Resolves diamond dependencies to avoid duplicate updates
- Validates package compatibility before applying changes
- Provides colorized output with detailed summary of changes
Note
The aspire update command requires an interactive terminal. The
--non-interactive flag is not currently supported for this command. In CI/CD
pipelines or other non-interactive environments, update Aspire packages
manually using aspire add {package} or equivalent tooling.
Options
The following options are available:
-
--self
Update the Aspire CLI itself to the latest version.
--channelChannel to update to (
stable,staging,daily).-
-
-
-
-
Examples
-
-
-
-
Analyze and update out-of-date Aspire packages and templates:
aspire updateUpdate a specific AppHost project:
aspire update --apphost './projects/apphost/orchestration.AppHost.csproj'