| title | NuGet CLI locals command |
|---|---|
| description | Reference for the nuget.exe locals command |
| author | JonDouglas |
| ms.author | jodou |
| ms.date | 03/19/2018 |
| ms.topic | reference |
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]
where <folder> is one of all, http-cache, packages-cache (3.5 and earlier), global-packages, temp (3.4+), and plugins-cache (4.8+).
-
-ClearClears the specified folder.
-
-ConfigFileThe NuGet configuration file to apply. If not specified,
%AppData%\NuGet\NuGet.Config(Windows), or~/.nuget/NuGet/NuGet.Configor~/.config/NuGet/NuGet.Config(Mac/Linux) is used. -
-ForceEnglishOutput(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-
-?|-helpDisplays help information for the command.
-
-ListLists the location of the specified folder, or the locations of all folders when used with all.
-
-NonInteractiveSuppresses prompts for user input or confirmations.
-
-Verbosity [normal|quiet|detailed]Specifies the amount of detail displayed in the output:
normal(the default),quiet, ordetailed.
Also see Environment variables
nuget locals all -list
nuget locals http-cache -clear
For additional examples, see Managing the global packages and cache folders.