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

dotnet tool uninstall

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

NAME

9       dotnet  tool  uninstall  - Uninstalls the specified .NET tool from your
10       machine.
11

SYNOPSIS

13              dotnet tool uninstall <PACKAGE_NAME> -g|--global
14
15              dotnet tool uninstall <PACKAGE_NAME> --tool-path <PATH>
16
17              dotnet tool uninstall <PACKAGE_NAME>
18
19              dotnet tool uninstall -h|--help
20

DESCRIPTION

22       The dotnet tool uninstall command provides a way for you  to  uninstall
23       .NET  tools  from your machine.  To use the command, you specify one of
24       the following options:
25
26       • To uninstall a global tool that was installed in  the  default  loca‐
27         tion, use the --global option.
28
29       • To  uninstall  a global tool that was installed in a custom location,
30         use the --tool-path option.
31
32       • To uninstall a local tool, omit the --global and --tool-path options.
33
34       Local tools are available starting with .NET Core SDK 3.0.
35
36   Arguments
37PACKAGE_NAME
38
39         Name/ID of the NuGet package that contains the  .NET  tool  to  unin‐
40         stall.  You can find the package name using the dotnet tool list com‐
41         mand.
42

OPTIONS

44-g|--global
45
46         Specifies that the tool to be removed is from a  user-wide  installa‐
47         tion.   Can’t be combined with the --tool-path option.  Omitting both
48         --global and --tool-path specifies that the tool to be removed  is  a
49         local tool.
50
51-?|-h|--help
52
53         Prints out a description of how to use the command.
54
55--tool-path <PATH>
56
57         Specifies  the location where to uninstall the tool.  PATH can be ab‐
58         solute or relative.  Can’t be  combined  with  the  --global  option.
59         Omitting  both --global and --tool-path specifies that the tool to be
60         removed is a local tool.
61

EXAMPLES

63dotnet tool uninstall -g dotnetsay
64
65         Uninstalls the dotnetsay  (https://www.nuget.org/packages/dotnetsay/)
66         global tool.
67
68dotnet tool uninstall dotnetsay --tool-path c:\global-tools
69
70         Uninstalls  the dotnetsay (https://www.nuget.org/packages/dotnetsay/)
71         global tool from a specific Windows directory.
72
73dotnet tool uninstall dotnetsay --tool-path ~/bin
74
75         Uninstalls the dotnetsay  (https://www.nuget.org/packages/dotnetsay/)
76         global tool from a specific Linux/macOS directory.
77
78dotnet tool uninstall dotnetsay
79
80         Uninstalls  the dotnetsay (https://www.nuget.org/packages/dotnetsay/)
81         local tool from the current directory.
82
83   See also
84       • .NET tools
85
86       • Tutorial: Install and use a .NET global tool using the .NET CLI
87
88       • Tutorial: Install and use a .NET local tool using the .NET CLI
89
90
91
92                                                                           (1)
Impressum