2022-04-02 19:16:27 -03:00
|
|
|
# dotnet tool
|
|
|
|
|
|
|
|
> Manage .NET tools and search published tools in NuGet.
|
2022-10-04 20:36:23 +05:30
|
|
|
> More information: <https://learn.microsoft.com/dotnet/core/tools/global-tools>.
|
2022-04-02 19:16:27 -03:00
|
|
|
|
|
|
|
- Install a global tool (don't use `--global` for local tools):
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dotnet tool install {{[-g|--global]}} {{dotnetsay}}`
|
2022-04-02 19:16:27 -03:00
|
|
|
|
|
|
|
- Install tools defined in the local tool manifest:
|
|
|
|
|
|
|
|
`dotnet tool restore`
|
|
|
|
|
|
|
|
- Update a specific global tool (don't use `--global` for local tools):
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dotnet tool update {{[-g|--global]}} {{tool_name}}`
|
2022-04-02 19:16:27 -03:00
|
|
|
|
|
|
|
- Uninstall a global tool (don't use `--global` for local tools):
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dotnet tool uninstall {{[-g|--global]}} {{tool_name}}`
|
2022-04-02 19:16:27 -03:00
|
|
|
|
|
|
|
- List installed global tools (don't use `--global` for local tools):
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dotnet tool list {{[-g|--global]}}`
|
2022-04-02 19:16:27 -03:00
|
|
|
|
|
|
|
- Search tools in NuGet:
|
|
|
|
|
|
|
|
`dotnet tool search {{search_term}}`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
2025-04-22 15:48:30 +03:00
|
|
|
`dotnet tool {{[-h|--help]}}`
|