aspire update command
Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.
aspire update - Update Aspire packages and templates in your project.
Synopsis
Section titled “Synopsis”aspire update [options]Description
Section titled “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 Aspire CLI uses the following logic, in order, to determine which AppHost project to process:
-
The
--projectoption.This option specifies the path to a project to process.
-
The
.aspire/settings.jsonconfig file.If the config file path exists in the current directory, it’s used. If not, the CLI walks up the directory structure looking for the config file. If it finds a config file, it reads the
appHostPathsetting value as the project to process. -
Searches the current directory and subdirectories.
Starting in the current directory, the CLI gathers all AppHost projects from that directory and below. If a single project is discovered, it’s automatically selected. If multiple projects are discovered, they’re printed to the terminal for the user to manually select one of the projects.
Once a project is selected, either automatically or manually, the path to the project is stored in the
.aspire/settings.jsonconfig file.
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
Options
Section titled “Options”The following options are available:
-
--projectThe path to the Aspire AppHost project file.
-
-?, -h, --helpPrints help and usage documentation for the available commands and options.
-
-d, --debugEnable debug logging to the console, which prints detailed information about what .NET Aspire CLI is doing when a command is run.
-
--wait-for-debuggerWait for a debugger to attach before running a command.
Examples
Section titled “Examples”-
Analyze and update out-of-date Aspire packages and templates:
Aspire CLI aspire update -
Update a specific AppHost project:
Aspire CLI aspire update --project './projects/apphost/orchestration.AppHost.csproj'