You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/dotnet-tool-list.md
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -20,18 +20,27 @@ dotnet tool list --tool-path <PATH>
20
20
21
21
dotnet tool list --local
22
22
23
+
dotnet tool list [<PACKAGE_ID>]
24
+
23
25
dotnet tool list
24
26
25
27
dotnet tool list -h|--help
26
28
```
27
29
28
30
## Description
29
31
30
-
The `dotnet tool list` command provides a way for you to list all .NET global, tool-path, or local tools installed on your machine. The command lists the package name, version installed, and the tool command. To use the command, you specify one of the following:
32
+
The `dotnet tool list` command provides a way for you to list .NET global, tool-path, or local tools installed on your machine. The command lists the package name, version installed, and the tool command. To use the command, you specify one of the following:
31
33
32
34
* To list global tools installed in the default location, use the `--global` option
33
35
* To list global tools installed in a custom location, use the `--tool-path` option.
34
36
* To list local tools, use the `--local` option or omit the `--global`, `--tool-path`, and `--local` options.
37
+
* To list a specific tool, use the optional `PACKAGE_ID` argument.
38
+
39
+
## Arguments
40
+
41
+
-**`PACKAGE_ID`**
42
+
43
+
Lists the tool that has the supplied package ID if the tool is installed. Can be used in conjunction with options. Provides a way to check if a specific tool was installed. The command returns 1 if no tool with the specified package ID is found; returns 0 otherwise.
35
44
36
45
## Options
37
46
@@ -67,6 +76,14 @@ The `dotnet tool list` command provides a way for you to list all .NET global, t
67
76
68
77
Lists all local tools available in the current directory.
69
78
79
+
-**`dotnet tool list -g dotnetsay`**
80
+
81
+
Lists the global tool with the package id [dotnetsay](https://www.nuget.org/packages/dotnetsay/)
82
+
83
+
-**`dotnet tool list dotnetsay`**
84
+
85
+
Lists the local tool with the package id [dotnetsay](https://www.nuget.org/packages/dotnetsay/)
As shown in the preceding example, the list shows local tools. To see global tools, use the `--global` option. To see tool-path tools, use the `--tool-path` option.
191
191
192
+
To list a specific tool, use the [dotnet tool list <PACKAGE_ID>](dotnet-tool-list.md) command:
193
+
194
+
```dotnetcli
195
+
dotnet tool list dotnetsay
196
+
```
197
+
198
+
The output will be only contain information of that tool if it is installed, similar to the following example:
For global tools, use the tool command by itself. For example, if the command is `dotnetsay` or `dotnet-doc`, that's what you use to invoke the global tool:
0 commit comments