dotnet-tool-install - Man Page

Installs the specified .NET tool on your machine.

dotnet tool install

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

Synopsis

dotnet tool install <PACKAGE_NAME> -g|--global
    [--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
    [--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
    [--no-cache] [--prerelease]
    [--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
    [--version <VERSION_NUMBER>]

dotnet tool install <PACKAGE_NAME> --tool-path <PATH>
    [--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
    [--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
    [--no-cache] [--prerelease]
    [--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
    [--version <VERSION_NUMBER>]

dotnet tool install <PACKAGE_NAME> [--local]
    [--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
    [--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
    [--no-cache] [--prerelease]
    [--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
    [--version <VERSION_NUMBER>]

dotnet tool install -h|--help

Description

The dotnet tool install command provides a way for you to install .NET tools on your machine. To use the command, you specify one of the following installation options:

Global tools are installed in the following directories by default when you specify the -g or --global option:

OSPath
Linux/macOS$HOME/.dotnet/tools
Windows%USERPROFILE%\.dotnet\tools

Local tools are added to a dotnet-tools.json file in a .config directory under the current directory. If a manifest file doesn’t exist yet, create it by running the following command:

dotnet new tool-manifest

For more information, see Install a local tool.

Arguments

Options

Examples

See Also

Info

2022-10-10 .NET Documentation