1dotnet-tool-restore(1)        .NET Documentation        dotnet-tool-restore(1)
2
3
4

dotnet tool restore

6       This article applies to: ✔️ .NET Core 3.1 SDK and later versions
7

NAME

9       dotnet-tool-restore  -  Installs the .NET local tools that are in scope
10       for the current directory.
11

SYNOPSIS

13              dotnet tool restore
14                  [--configfile <FILE>] [--add-source <SOURCE>]
15                  [--tool-manifest <PATH_TO_MANIFEST_FILE>] [--disable-parallel]
16                  [--ignore-failed-sources] [--no-cache] [--interactive]
17                  [-v|--verbosity <LEVEL>]
18
19              dotnet tool restore -h|--help
20

DESCRIPTION

22       The dotnet tool restore command finds the tool manifest file that is in
23       scope  for the current directory and installs the tools that are listed
24       in it.  For information about manifest files, see Install a local  tool
25       and Invoke a local tool.
26

OPTIONS

28--configfile <FILE>
29
30         The  NuGet  configuration  file (nuget.config) to use.  If specified,
31         only the settings from this file will be used.  If not specified, the
32         hierarchy  of  configuration files from the current directory will be
33         used.  For more information, see Common NuGet Configurations.
34
35--add-source <SOURCE>
36
37         Adds an additional NuGet package source to use  during  installation.
38         Feeds  are  accessed  in  parallel, not sequentially in some order of
39         precedence.  If the same package and version is  in  multiple  feeds,
40         the fastest feed wins.  For more information, see What happens when a
41         NuGet package is installed?.
42
43--tool-manifest <PATH>
44
45         Path to the manifest file.
46
47--disable-parallel
48
49         Prevent restoring multiple projects in parallel.
50
51--ignore-failed-sources
52
53         Treat package source failures as warnings.
54
55--no-cache
56
57         Do not cache packages and http requests.
58
59--interactive
60
61         Allows the command to stop and wait for user input  or  action.   For
62         example, to complete authentication.
63
64-?|-h|--help
65
66         Prints out a description of how to use the command.
67
68-v|--verbosity <LEVEL>
69
70         Sets the verbosity level of the command.  Allowed values are q[uiet],
71         m[inimal], n[ormal], d[etailed], and diag[nostic].  For more informa‐
72         tion, see <xref:Microsoft.Build.Framework.LoggerVerbosity>.
73
74   Example
75dotnet tool restore
76
77         Restores local tools for the current directory.
78

SEE ALSO

80       • .NET tools
81
82       • Tutorial: Install and use a .NET local tool using the .NET CLI
83
84
85
86                                  2022-10-10            dotnet-tool-restore(1)
Impressum