You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-nuget-locals.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,10 +30,11 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h
30
30
31
31
The cache location to list or clear. It accepts one of the following values:
32
32
33
-
*`all` - Indicates that the specified operation is applied to all cache types: http-request cache, global packages cache, and the temporary cache.
33
+
*`all` - Indicates that the specified operation is applied to all cache types: http-request cache, global packages cache, temporary cache, and plugins cache.
34
34
*`http-cache` - Indicates that the specified operation is applied only to the http-request cache. The other cache locations aren't affected.
35
35
*`global-packages` - Indicates that the specified operation is applied only to the global packages cache. The other cache locations aren't affected.
36
36
*`temp` - Indicates that the specified operation is applied only to the temporary cache. The other cache locations aren't affected.
37
+
*`plugins-cache` - Indicates that the specified operation is applied only to the plugins cache. The other cache locations aren't affected.
37
38
38
39
## Options
39
40
@@ -53,7 +54,7 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h
53
54
54
55
## Examples
55
56
56
-
- Displays the paths of all the local cache directories (http-cache directory, global-packages cache directory, and temporary cache directory):
57
+
- Displays the paths of all the local cache directories (http-cache directory, global-packages cache directory, temporary cache directory, and plugins cache directory):
57
58
58
59
```dotnetcli
59
60
dotnet nuget locals all -l
@@ -65,7 +66,13 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h
65
66
dotnet nuget locals http-cache --list
66
67
```
67
68
68
-
- Clears all files from all local cache directories (http-cache directory, global-packages cache directory, and temporary cache directory):
69
+
- Displays the path for the local plugins cache directory:
70
+
71
+
```dotnetcli
72
+
dotnet nuget locals plugins-cache --list
73
+
```
74
+
75
+
- Clears all files from all local cache directories (http-cache directory, global-packages cache directory, temporary cache directory, and plugins cache directory):
69
76
70
77
```dotnetcli
71
78
dotnet nuget locals all --clear
@@ -83,6 +90,12 @@ The `dotnet nuget locals` command clears or lists local NuGet resources in the h
83
90
dotnet nuget locals temp -c
84
91
```
85
92
93
+
- Clears all files in local plugins cache directory:
94
+
95
+
```dotnetcli
96
+
dotnet nuget locals plugins-cache -c
97
+
```
98
+
86
99
## Troubleshooting
87
100
88
101
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).
0 commit comments