aspire cache clear command
aspire cache clear - Clear all cache entries.
Synopsis
Section titled “Synopsis”aspire cache clear [options]Description
Section titled “Description”The aspire cache clear command removes all cached data stored by the Aspire CLI. This includes downloaded templates, NuGet package metadata, and other temporary files used to improve CLI performance.
Clearing the cache forces the CLI to re-download templates and refresh package information on the next operation, which can help resolve issues related to stale or corrupted cache data.
Options
Section titled “Options”The following options are available:
-
-?, -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”-
Clear all cached data:
Aspire CLI aspire cache clear
What gets cleared
Section titled “What gets cleared”The aspire cache clear command removes:
- Downloaded project templates
- NuGet package metadata and search results
- Integration package information
- Temporary build artifacts
- Other CLI operation caches
Performance impact
Section titled “Performance impact”After clearing the cache:
- The first
aspire newcommand may take longer as templates are re-downloaded - The first
aspire addcommand may be slower as package information is refreshed - Subsequent operations will benefit from the rebuilt cache