HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dotnet tool — Manage .NET tools and search published tools in NuGet. More information: <https://learn.microsoft.co

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandnetandsearchclimanagetoolsdotnet tool

Problem

How to use the dotnet tool command: Manage .NET tools and search published tools in NuGet. More information: <https://learn.microsoft.com/dotnet/core/tools/global-tools>.

Solution

dotnet tool — Manage .NET tools and search published tools in NuGet. More information: <https://learn.microsoft.com/dotnet/core/tools/global-tools>.

Install a global tool (don't use --global for local tools):
dotnet tool install {{[-g|--global]}} {{dotnetsay}}


Install tools defined in the local tool manifest:
dotnet tool restore


Update a specific global tool (don't use --global for local tools):
dotnet tool update {{[-g|--global]}} {{tool_name}}


Uninstall a global tool (don't use --global for local tools):
dotnet tool uninstall {{[-g|--global]}} {{tool_name}}


List installed global tools (don't use --global for local tools):
dotnet tool list {{[-g|--global]}}


Search tools in NuGet:
dotnet tool search {{search_term}}


Display help:
dotnet tool {{[-h|--help]}}

Code Snippets

Install a global tool (don't use `--global` for local tools)

dotnet tool install {{[-g|--global]}} {{dotnetsay}}

Install tools defined in the local tool manifest

dotnet tool restore

Update a specific global tool (don't use `--global` for local tools)

dotnet tool update {{[-g|--global]}} {{tool_name}}

Uninstall a global tool (don't use `--global` for local tools)

dotnet tool uninstall {{[-g|--global]}} {{tool_name}}

List installed global tools (don't use `--global` for local tools)

dotnet tool list {{[-g|--global]}}

Context

tldr-pages: common/dotnet tool

Revisions (0)

No revisions yet.