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

dotnet nuget locals

6       This topic applies to: ✓ .NET Core 1.x SDK and later versions
7

NAME

9       dotnet nuget locals - Clears or lists local NuGet resources.
10

SYNOPSIS

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

DESCRIPTION

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

OPTIONS

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

EXAMPLES

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

AUTHORS

94       karann-msft.
95
96
97
98                                                dotnet nuget locals command(1)
Impressum