1(1)                                  .NET                                  (1)
2
3
4

dotnet tool update

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

NAME

9       dotnet tool update - Updates the specified .NET tool on your machine.
10

SYNOPSIS

12              dotnet tool update <PACKAGE_ID> -g|--global
13                  [--add-source <SOURCE>] [--configfile <FILE>]
14                  [--disable-parallel] [--framework <FRAMEWORK>]
15                  [--ignore-failed-sources] [--interactive] [--no-cache]
16                  [-v|--verbosity <LEVEL>] [--version <VERSION>]
17
18              dotnet tool update <PACKAGE_ID> --tool-path <PATH>
19                  [--add-source <SOURCE>] [--configfile <FILE>]
20                  [--disable-parallel] [--framework <FRAMEWORK>]
21                  [--ignore-failed-sources] [--interactive] [--no-cache]
22                  [-v|--verbosity <LEVEL>] [--version <VERSION>]
23
24              dotnet tool update <PACKAGE_ID> --local
25                  [--add-source <SOURCE>] [--configfile <FILE>]
26                  [--disable-parallel] [--framework <FRAMEWORK>]
27                  [--ignore-failed-sources] [--interactive] [--no-cache]
28                  [--tool-manifest <PATH>]
29                  [-v|--verbosity <LEVEL>] [--version <VERSION>]
30
31              dotnet tool update -h|--help
32

DESCRIPTION

34       The  dotnet  tool  update command provides a way for you to update .NET
35       tools on your machine to the latest stable version of the package.  The
36       command  uninstalls and reinstalls a tool, effectively updating it.  To
37       use the command, you specify one of the following options:
38
39       • To update a global tool that was installed in the  default  location,
40         use the --global option
41
42       • To  update a global tool that was installed in a custom location, use
43         the --tool-path option.
44
45       • To update a local tool, use the --local option.
46
47       Local tools are available starting with .NET Core SDK 3.0.
48
49   Arguments
50PACKAGE_ID
51
52         Name/ID of the NuGet package that contains the .NET  global  tool  to
53         update.   You  can  find  the package name using the dotnet tool list
54         command.
55

OPTIONS

57--add-source <SOURCE>
58
59         Adds an additional NuGet package source to use  during  installation.
60         Feeds  are  accessed  in  parallel, not sequentially in some order of
61         precedence.  If the same package and version is  in  multiple  feeds,
62         the fastest feed wins.  For more information, see What happens when a
63         NuGet package is installed?.
64
65--configfile <FILE>
66
67         The NuGet configuration file (nuget.config) to  use.   If  specified,
68         only the settings from this file will be used.  If not specified, the
69         hierarchy of configuration files from the current directory  will  be
70         used.  For more information, see Common NuGet Configurations.
71
72--disable-parallel
73
74         Prevent restoring multiple projects in parallel.
75
76--framework <FRAMEWORK>
77
78         Specifies the target framework to update the tool for.
79
80-g|--global
81
82         Specifies that the update is for a user-wide tool.  Can’t be combined
83         with the --tool-path option.  Omitting both --global and  --tool-path
84         specifies that the tool to be updated is a local tool.
85
86-?|-h|--help
87
88         Prints out a description of how to use the command.
89
90--ignore-failed-sources
91
92         Treat package source failures as warnings.
93
94--interactive
95
96         Allows  the  command  to stop and wait for user input or action.  For
97         example, to complete authentication.
98
99--local
100
101         Update the tool and the local tool manifest.  Can’t be combined  with
102         the --global option or the --tool-path option.
103
104--no-cache
105
106         Do not cache packages and HTTP requests.
107
108--tool-manifest <PATH>
109
110         Path to the manifest file.
111
112--tool-path <PATH>
113
114         Specifies  the location where the global tool is installed.  PATH can
115         be absolute or relative.  Can’t be combined with the --global option.
116         Omitting  both --global and --tool-path specifies that the tool to be
117         updated is a local tool.
118
119-v|--verbosity <LEVEL>
120
121         Sets the verbosity level of the command.  Allowed values are q[uiet],
122         m[inimal], n[ormal], d[etailed], and diag[nostic].  For more informa‐
123         tion, see <xref:Microsoft.Build.Framework.LoggerVerbosity>.
124
125--version <VERSION>
126
127         The version range of the tool package to update to.  This  cannot  be
128         used to downgrade versions, you must uninstall newer versions first.
129

EXAMPLES

131dotnet tool update -g dotnetsay
132
133         Updates   the  dotnetsay  (https://www.nuget.org/packages/dotnetsay/)
134         global tool.
135
136dotnet tool update dotnetsay --tool-path c:\global-tools
137
138         Updates  the  dotnetsay   (https://www.nuget.org/packages/dotnetsay/)
139         global tool located in a specific Windows directory.
140
141dotnet tool update dotnetsay --tool-path ~/bin
142
143         Updates   the  dotnetsay  (https://www.nuget.org/packages/dotnetsay/)
144         global tool located in a specific Linux/macOS directory.
145
146dotnet tool update dotnetsay
147
148         Updates the dotnetsay (https://www.nuget.org/packages/dotnetsay/) lo‐
149         cal tool installed for the current directory.
150
151dotnet tool update -g dotnetsay --version 2.0.*
152
153         Updates   the  dotnetsay  (https://www.nuget.org/packages/dotnetsay/)
154         global tool to the latest patch version, with a major version  of  2,
155         and a minor version of 0.
156
157dotnet tool update -g dotnetsay --version (2.0.*,2.1.4)
158
159         Updates   the  dotnetsay  (https://www.nuget.org/packages/dotnetsay/)
160         global tool to the lowest version within the specified range (> 2.0.0
161         &&  < 2.1.4), version 2.1.0 would be installed.  For more information
162         on semantic versioning ranges, see NuGet packaging version ranges.
163
164   See also
165       • .NET tools
166
167       • Semantic versioning (https://semver.org)
168
169       • Tutorial: Install and use a .NET global tool using the .NET CLI
170
171       • Tutorial: Install and use a .NET local tool using the .NET CLI
172
173
174
175                                                                           (1)
Impressum