Skip to content

Commit ff9822f

Browse files
CopilotmeaghanlewisCopilot
authored
Add missing --source option to dotnet tool exec documentation (#50354)
* Initial plan * Add --source option to dotnet tool exec documentation Co-authored-by: meaghanlewis <[email protected]> * Document --source option in dotnet tool exec Added description for the --source option in dotnet tool exec. * Update docs/core/tools/dotnet-tool-exec.md Co-authored-by: Copilot <[email protected]> * add includes file and missing source option to commands * update source description --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: meaghanlewis <[email protected]> Co-authored-by: Meaghan Osagie (Lewis) <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent f513c8c commit ff9822f

File tree

4 files changed

+19
-10
lines changed

4 files changed

+19
-10
lines changed

docs/core/tools/dotnet-tool-exec.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dotnet tool exec <PACKAGE_NAME>[@<VERSION>]
1818
[--allow-roll-forward] [-a|--arch <ARCHITECTURE>]
1919
[--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
2020
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
21-
[--no-http-cache] [--prerelease]
21+
[--no-http-cache] [--prerelease] [--source <SOURCE>]
2222
[-v|--verbosity <LEVEL>]
2323
[--] [<tool-arguments>...]
2424
@@ -81,6 +81,8 @@ This command also exists in two other forms for easier use
8181

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

84+
- [!INCLUDE [source](../../../includes/cli-tool-source.md)]
85+
8486
- [!INCLUDE [verbosity](../../../includes/cli-verbosity-normal.md)]
8587

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

docs/core/tools/dotnet-tool-install.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ dotnet tool install <PACKAGE_NAME> -g|--global
1818
[--allow-downgrade] [--allow-roll-forward] [-a|--arch <ARCHITECTURE>]
1919
[--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
2020
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
21-
[--no-cache] [--prerelease]
21+
[--no-cache] [--prerelease] [--source <SOURCE>]
2222
[--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
2323
[--version <VERSION_NUMBER>]
2424
2525
dotnet tool install <PACKAGE_NAME> --tool-path <PATH>
2626
[--allow-downgrade] [--allow-roll-forward] [-a|--arch <ARCHITECTURE>]
2727
[--add-source <SOURCE>] [--configfile <FILE>] [--disable-parallel]
2828
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
29-
[--no-cache] [--prerelease]
29+
[--no-cache] [--prerelease] [--source <SOURCE>]
3030
[--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
3131
[--version <VERSION_NUMBER>]
3232
@@ -35,7 +35,7 @@ dotnet tool install <PACKAGE_NAME> [--local]
3535
[--add-source <SOURCE>] [--configfile <FILE>]
3636
[--create-manifest-if-needed] [--disable-parallel]
3737
[--framework <FRAMEWORK>] [--ignore-failed-sources] [--interactive]
38-
[--no-cache] [--prerelease]
38+
[--no-cache] [--prerelease] [--source <SOURCE>]
3939
[--tool-manifest <PATH>] [-v|--verbosity <LEVEL>]
4040
[--version <VERSION_NUMBER>]
4141
@@ -141,9 +141,7 @@ For more information, see [Install a local tool](global-tools.md#install-a-local
141141

142142
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.
143143

144-
- **`--source <SOURCE>`**
145-
146-
Specifies the source for NuGet packages. This source replaces all NuGet package sources.
144+
- [!INCLUDE [source](../../../includes/cli-tool-source.md)]
147145

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

docs/core/tools/dotnet-tool-update.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,23 @@ dotnet tool update <PACKAGE_ID> -g|--global
1919
[--configfile <FILE>]
2020
[--disable-parallel] [--framework <FRAMEWORK>]
2121
[--ignore-failed-sources] [--interactive]
22-
[--no-cache] [--prerelease]
22+
[--no-cache] [--prerelease] [--source <SOURCE>]
2323
[-v|--verbosity <LEVEL>] [--version <VERSION>]
2424
2525
dotnet tool update <PACKAGE_ID> --tool-path <PATH>
2626
[--add-source <SOURCE>] [--all] [--allow-downgrade]
2727
[--configfile <FILE>]
2828
[--disable-parallel] [--framework <FRAMEWORK>]
2929
[--ignore-failed-sources] [--interactive]
30-
[--no-cache] [--prerelease]
30+
[--no-cache] [--prerelease] [--source <SOURCE>]
3131
[-v|--verbosity <LEVEL>] [--version <VERSION>]
3232
3333
dotnet tool update <PACKAGE_ID> --local
3434
[--add-source <SOURCE>] [--all] [--allow-downgrade]
3535
[--configfile <FILE>]
3636
[--disable-parallel] [--framework <FRAMEWORK>]
3737
[--ignore-failed-sources] [--interactive]
38-
[--no-cache] [--prerelease]
38+
[--no-cache] [--prerelease] [--source <SOURCE>]
3939
[--tool-manifest <PATH>]
4040
[-v|--verbosity <LEVEL>] [--version <VERSION>]
4141
@@ -102,6 +102,8 @@ The `dotnet tool update` command provides a way for you to update .NET tools on
102102

103103
Include prerelease versions.
104104

105+
- [!INCLUDE [source](../../../includes/cli-tool-source.md)]
106+
105107
- **`--tool-manifest <PATH>`**
106108

107109
Path to the manifest file.

includes/cli-tool-source.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
ms.date: 12/05/2025
3+
ms.topic: include
4+
---
5+
**`--source <SOURCE>`**
6+
7+
Specifies the source for NuGet packages.

0 commit comments

Comments
 (0)