Pular para o conteúdo

aspire cache clear command

Este conteúdo não está disponível em sua língua ainda.

aspire cache clear - Clear all cache entries.

Aspire CLI
aspire cache clear [options]

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.

The following options are available:

  • -?, -h, --help

    Prints help and usage documentation for the available commands and options.

  • -d, --debug

    Enable debug logging to the console, which prints detailed information about what .NET Aspire CLI is doing when a command is run.

  • --wait-for-debugger

    Wait for a debugger to attach before running a command.

  • Clear all cached data:

    Aspire CLI
    aspire cache clear

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

After clearing the cache:

  • The first aspire new command may take longer as templates are re-downloaded
  • The first aspire add command may be slower as package information is refreshed
  • Subsequent operations will benefit from the rebuilt cache
Pergunte & RespondaColaboreComunidadeDiscutirAssistir