1dotnet nuget locals command - .NEdTotC.noNerEteTnCCuLogIre(et1)locals command - .NET Core CLI(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  cache
25         types:  http-request  cache, global packages cache, and the temporary
26         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 affect‐
30         ed.
31
32       · global-packages - Indicates that the specified operation  is  applied
33         only  to the global packages cache.  The other cache locations aren't
34         affected.
35
36       · temp - Indicates that the specified operation is applied only to  the
37         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 cache
54       directories.   If not, an error is displayed indicating the files/fold‐
55       ers that weren't cleared.
56
57       -l|--list
58
59       The list option is used to display the location of the specified  cache
60       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  directo‐
65       ry):
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 directo‐
74       ry, global-packages cache directory, and temporary cache directory):
75
76       dotnet nuget locals --clear all
77
78       Clears all files in local global-packages cache directory:
79
80       dotnet nuget locals -c global-packages
81
82       Clears all files in local temporary cache directory:
83
84       dotnet nuget locals -c temp
85
86   Troubleshooting
87       For information on common problems and  errors  while  using  the  dot‐
88       net nuget locals command, see Managing the NuGet cache.
89

AUTHORS

91       karann-msft.
92
93
94
95                                dotnet nuget locals command - .NET Core CLI(1)
Impressum