1dotnet nuget locals command(1)     .NET Core    dotnet nuget locals command(1)
2
3
4

dotnet nuget locals

NAME

7       dotnet nuget locals - Clears or lists local NuGet resources.
8

SYNOPSIS

10              dotnet nuget locals <CACHE_LOCATION> [(-c|--clear)|(-l|--list)] [--force-english-output]
11              dotnet nuget locals [-h|--help]
12

DESCRIPTION

14       The  dotnet  nuget locals command clears or lists local NuGet resources
15       in the http-request cache,  temporary  cache,  or  machine-wide  global
16       packages folder.
17
18   Arguments
19       · CACHE_LOCATION
20
21         The cache location to list or clear.  It accepts one of the following
22         values:
23
24         · all - Indicates that the specified  operation  is  applied  to  all
25           cache  types:  http-request  cache,  global packages cache, and the
26           temporary cache.
27
28         · http-cache - Indicates that the specified operation is applied only
29           to  the  http-request  cache.  The other cache locations aren’t af‐
30           fected.
31
32         · global-packages - Indicates that the specified operation is applied
33           only  to  the  global  packages  cache.   The other cache locations
34           aren’t affected.
35
36         · temp - Indicates that the specified operation is  applied  only  to
37           the temporary cache.  The other cache locations aren’t affected.
38

OPTIONS

40       · --force-english-output
41
42         Forces  the application to run using an invariant, English-based cul‐
43         ture.
44
45       · -h|--help
46
47         Prints out a short help for the command.
48
49       · -c|--clear
50
51         The clear option executes a clear operation on  the  specified  cache
52         type.  The contents of the cache directories are deleted recursively.
53         The executing user/group must have permission to  the  files  in  the
54         cache  directories.   If  not,  an  error is displayed indicating the
55         files/folders that weren’t cleared.
56
57       · -l|--list
58
59         The list option is used to display  the  location  of  the  specified
60         cache type.
61

EXAMPLES

63       · Displays the paths of all the local cache directories (http-cache di‐
64         rectory, global-packages cache directory, and temporary cache  direc‐
65         tory):
66
67                dotnet nuget locals –l all
68
69       · Displays the path for the local http-cache directory:
70
71                dotnet nuget locals --list http-cache
72
73       · Clears  all files from all local cache directories (http-cache direc‐
74         tory, global-packages cache directory, and temporary  cache  directo‐
75         ry):
76
77                dotnet nuget locals --clear all
78
79       · Clears all files in local global-packages cache directory:
80
81                dotnet nuget locals -c global-packages
82
83       · Clears all files in local temporary cache directory:
84
85                dotnet nuget locals -c temp
86
87   Troubleshooting
88       For  information  on  common problems and errors while using the dotnet
89       nuget locals command, see Managing the NuGet cache.
90

AUTHORS

92       karann-msft.
93
94
95
96                                                dotnet nuget locals command(1)
Impressum