dotnet-nuget-locals(1) | .NET Documentation | dotnet-nuget-locals(1) |
This article applies to: ✔️ .NET Core 3.1 SDK and later versions
dotnet-nuget-locals - Clears or lists local NuGet resources.
dotnet nuget locals <CACHE_LOCATION> [(-c|--clear)|(-l|--list)] [--force-english-output] dotnet nuget locals -h|--help
The dotnet nuget locals command clears or lists local NuGet resources in the http-request cache, temporary cache, or machine-wide global packages folder.
The cache location to list or clear. It accepts one of the following values:
Forces the application to run using an invariant, English-based culture.
Prints out a description of how to use the command.
The clear option executes a clear operation on the specified cache type. The contents of the cache directories are deleted recursively. The executing user/group must have permission to the files in the cache directories. If not, an error is displayed indicating the files/folders that weren’t cleared.
The list option is used to display the location of the specified cache type.
dotnet nuget locals all -l
dotnet nuget locals http-cache --list
dotnet nuget locals all --clear
dotnet nuget locals global-packages -c
dotnet nuget locals temp -c
For information on common problems and errors while using the dotnet nuget locals command, see Managing the NuGet cache.
2023-10-25 |