Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article applies to: ✔️ .NET Core 3.1 SDK and later versions
Name
dotnet tool list - Lists all .NET tools of the specified type currently installed on your machine.
Synopsis
dotnet tool list -g|--global
dotnet tool list --tool-path <PATH>
dotnet tool list --local
dotnet tool list [<PACKAGE_ID>]
dotnet tool list
dotnet tool list -h|--help
Description
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:
- To list global tools installed in the default location, use the
--globaloption - To list global tools installed in a custom location, use the
--tool-pathoption. - To list local tools, use the
--localoption or omit the--global,--tool-path, and--localoptions. - To list a specific tool, use the optional
PACKAGE_IDargument.
Arguments
PACKAGE_IDLists 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. If no tool with the specified package ID is found, the command lists headings with no detail rows. The command always returns 0.
Options
-g|--globalLists user-wide global tools. Can't be combined with the
--tool-pathoption. Omitting both--globaland--tool-pathlists local tools.
-?|-h|--helpPrints out a description of how to use the command.
--localLists local tools for the current directory. Can't be combined with the
--globalor--tool-pathoptions. Omitting both--globaland--tool-pathlists local tools even if--localis not specified.--tool-path <PATH>Specifies a custom location where to find global tools. PATH can be absolute or relative. Can't be combined with the
--globaloption. Omitting both--globaland--tool-pathlists local tools.
Examples
dotnet tool list -gLists all global tools installed user-wide on your machine (current user profile).
dotnet tool list --tool-path c:\global-toolsLists the global tools from a specific Windows directory.
dotnet tool list --tool-path ~/binLists the global tools from a specific Linux/macOS directory.
dotnet tool listordotnet tool list --localLists all local tools available in the current directory.
dotnet tool list -g dotnetsayLists the global tool with the package ID dotnetsay
dotnet tool list dotnetsayLists the local tool with the package ID dotnetsay