# aspire cache command

## Name

`aspire cache` - Manage disk cache for CLI operations.

## Synopsis

```bash title="Aspire CLI"
aspire cache [command] [options]
```

## 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

The following options are available:

- <Include relativePath="reference/cli/includes/option-help.md" />

- <Include relativePath="reference/cli/includes/option-log-level.md" />

- <Include relativePath="reference/cli/includes/option-non-interactive.md" />

- <Include relativePath="reference/cli/includes/option-nologo.md" />

- <Include relativePath="reference/cli/includes/option-banner.md" />

- <Include relativePath="reference/cli/includes/option-wait.md" />

## Commands

The following commands are available:

| Command                                        | Status | Function                 |
| ---------------------------------------------- | ------ | ------------------------ |
| [`aspire cache clear`](../aspire-cache-clear/) | Stable | Clear all cache entries. |

## 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

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

## See also

- [aspire cache clear command](../aspire-cache-clear/)
- [aspire config command](../aspire-config/)