Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions docs/core/tools/dotnet-nuget-locals.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h

The cache location to list or clear. It accepts one of the following values:

* `all` - Indicates that the specified operation is applied to all cache types: http-request cache, global packages cache, and the temporary cache.
* `all` - Indicates that the specified operation is applied to all cache types: http-request cache, global packages cache, temporary cache, and plugins cache.
* `http-cache` - Indicates that the specified operation is applied only to the http-request cache. The other cache locations aren't affected.
* `global-packages` - Indicates that the specified operation is applied only to the global packages cache. The other cache locations aren't affected.
* `temp` - Indicates that the specified operation is applied only to the temporary cache. The other cache locations aren't affected.
* `plugins-cache` - Indicates that the specified operation is applied only to the plugins cache. The other cache locations aren't affected.

## Options

Expand All @@ -53,7 +54,7 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h

## Examples

- Displays the paths of all the local cache directories (http-cache directory, global-packages cache directory, and temporary cache directory):
- Displays the paths of all the local cache directories (http-cache directory, global-packages cache directory, temporary cache directory, and plugins cache directory):

```dotnetcli
dotnet nuget locals all -l
Expand All @@ -65,7 +66,13 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h
dotnet nuget locals http-cache --list
```

- Clears all files from all local cache directories (http-cache directory, global-packages cache directory, and temporary cache directory):
- Displays the path for the local plugins cache directory:

```dotnetcli
dotnet nuget locals plugins-cache --list
```

- Clears all files from all local cache directories (http-cache directory, global-packages cache directory, temporary cache directory, and plugins cache directory):

```dotnetcli
dotnet nuget locals all --clear
Expand All @@ -83,6 +90,12 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h
dotnet nuget locals temp -c
```

- Clears all files in local plugins cache directory:

```dotnetcli
dotnet nuget locals plugins-cache -c
```

## Troubleshooting

For information on common problems and errors while using the `dotnet nuget locals` command, see [Managing the NuGet cache](/nuget/consume-packages/managing-the-nuget-cache).
Loading