Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/core/tools/dotnet-tool-exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotnet tool exec <PACKAGE_NAME>[@<VERSION>]
[--allow-roll-forward] [-a|--arch <ARCHITECTURE>]
[--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
[--no-http-cache] [--prerelease]
[--no-http-cache] [--prerelease] [--source <SOURCE>]
[-v|--verbosity <LEVEL>]
[--] [<tool-arguments>...]

Expand Down Expand Up @@ -81,6 +81,8 @@ This command also exists in two other forms for easier use

Allows prerelease packages to be selected when resolving the version to install.

- [!INCLUDE [source](../../../includes/cli-tool-source.md)]

- [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)]

- [!INCLUDE [help](../../../includes/cli-help.md)]
Expand Down
10 changes: 4 additions & 6 deletions docs/core/tools/dotnet-tool-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ dotnet tool install <PACKAGE_NAME> -g|--global
[--allow-downgrade] [--allow-roll-forward] [-a|--arch <ARCHITECTURE>]
[--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
[--no-cache] [--prerelease]
[--no-cache] [--prerelease] [--source <SOURCE>]
[--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
[--version <VERSION_NUMBER>]

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

Expand All @@ -35,7 +35,7 @@ dotnet tool install <PACKAGE_NAME> [--local]
[--add-source <SOURCE>] [--configfile <FILE>]
[--create-manifest-if-needed] [--disable-parallel]
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
[--no-cache] [--prerelease]
[--no-cache] [--prerelease] [--source <SOURCE>]
[--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
[--version <VERSION_NUMBER>]

Expand Down Expand Up @@ -141,9 +141,7 @@ For more information, see [Install a local tool](global-tools.md#install-a-local

Specifies that the installation is user wide. Can't be combined with the `--tool-path` option. Omitting both `--global` and `--tool-path` specifies a local tool installation.

- **`--source <SOURCE>`**

Specifies the source for NuGet packages. This source replaces all NuGet package sources.
- [!INCLUDE [source](../../../includes/cli-tool-source.md)]

- [!INCLUDE [help](../../../includes/cli-help.md)]

Expand Down
8 changes: 5 additions & 3 deletions docs/core/tools/dotnet-tool-update.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ dotnet tool update <PACKAGE_ID> -g|--global
[--configfile <FILE>]
[--disable-parallel] [--framework <FRAMEWORK>]
[--ignore-failed-sources] [--interactive]
[--no-cache] [--prerelease]
[--no-cache] [--prerelease] [--source <SOURCE>]
[-v|--verbosity <LEVEL>] [--version <VERSION>]

dotnet tool update <PACKAGE_ID> --tool-path <PATH>
[--add-source <SOURCE>] [--all] [--allow-downgrade]
[--configfile <FILE>]
[--disable-parallel] [--framework <FRAMEWORK>]
[--ignore-failed-sources] [--interactive]
[--no-cache] [--prerelease]
[--no-cache] [--prerelease] [--source <SOURCE>]
[-v|--verbosity <LEVEL>] [--version <VERSION>]

dotnet tool update <PACKAGE_ID> --local
[--add-source <SOURCE>] [--all] [--allow-downgrade]
[--configfile <FILE>]
[--disable-parallel] [--framework <FRAMEWORK>]
[--ignore-failed-sources] [--interactive]
[--no-cache] [--prerelease]
[--no-cache] [--prerelease] [--source <SOURCE>]
[--tool-manifest <PATH>]
[-v|--verbosity <LEVEL>] [--version <VERSION>]

Expand Down Expand Up @@ -102,6 +102,8 @@ The `dotnet tool update` command provides a way for you to update .NET tools on

Include prerelease versions.

- [!INCLUDE [source](../../../includes/cli-tool-source.md)]

- **`--tool-manifest <PATH>`**

Path to the manifest file.
Expand Down
7 changes: 7 additions & 0 deletions includes/cli-tool-source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
ms.date: 12/05/2025
ms.topic: include
---
**`--source <SOURCE>`**

Specifies the source for NuGet packages. This source replaces all NuGet package sources.