locals command (NuGet CLI)
Applies to: package consumption • Supported versions: 3.3+
Clears or lists local NuGet resources such as the http-cache, global-packages folder, and the temp folder. The
locals command can also be used to display a list of those locations. For more information, see Managing the global packages and cache folders.
nuget locals <folder> [options]
<folder> is one of
packages-cache (3.5 and earlier),
temp (3.4+), and
|Clear||Clears the specified folder.|
|ConfigFile||The NuGet configuration file to apply. If not specified,
|ForceEnglishOutput||(3.5+) Forces nuget.exe to run using an invariant, English-based culture.|
|Help||Displays help information for the command.|
|List||Lists the location of the specified folder, or the locations of all folders when used with all.|
|NonInteractive||Suppresses prompts for user input or confirmations.|
|Verbosity||Specifies the amount of detail displayed in the output: normal, quiet, detailed.|
Also see Environment variables
nuget locals all -list nuget locals http-cache -clear
For additional examples, see Managing the global packages and cache folders.
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.