aspire cache command
Questi contenuti non sono ancora disponibili nella tua lingua.
aspire cache - Manage disk cache for CLI operations.
Synopsis
Section titled “Synopsis”aspire cache [command] [options]Description
Section titled “Description”The aspire cache command manages the disk cache used by the Aspire CLI for various operations. The CLI caches data such as downloaded templates, NuGet package information, and other temporary files to improve performance and reduce network requests.
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.
Commands
Section titled “Commands”The following commands are available:
| Command | Status | Function |
|---|---|---|
aspire cache clear | Stable | Clear all cache entries. |
Cache location
Section titled “Cache location”The Aspire CLI stores cache data in a platform-specific location:
- Windows:
%LOCALAPPDATA%\.aspire\cli\cache\ - macOS/Linux:
~/.aspire/cli/cache/
When to clear cache
Section titled “When to clear cache”You may want to clear the cache in the following scenarios:
- After updating the Aspire CLI to ensure fresh data
- When experiencing issues with template installation
- To free up disk space
- When NuGet package information appears outdated
- When troubleshooting CLI behavior