aspire cache clear command
Name
aspire cache clear - Clear all cache entries.
Synopsis
aspire cache clear [options]
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
The following options are available:
-
-
-
-
-
Examples
-
-
-
-
Clear all cached data:
aspire cache clear
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
Note
This command does not remove: - The Aspire CLI installation itself -
Configuration settings (those are managed by aspire config) - Your Aspire
projects or their dependencies
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