Add missing --source option to dotnet tool exec documentation
Summary
The dotnet tool exec documentation was missing the --source CLI option that appears in dotnet tool exec --help output. The --configfile option mentioned in the issue was already documented.
Changes:
- Added
[--source <SOURCE>]to the synopsis section - Added the
--sourceoption description in an includes filecli-tool-source - Also added the missing option to:
dotnet tool installanddotnet tool update
Original prompt
This section details on the original issue you should resolve
<issue_title>
dotnet tool execmissing CLI options for NuGet config file and NuGet sources</issue_title> <issue_description>### Type of issueMissing information
Description
In https://github.com/dotnet/sdk/issues/51994 @afscrome noted that
--configfileand--sourceare missing from this page. We should fill them in, and their content should be the same as those options on the otherdotnet toolcommands.[Enter feedback here]
Page URL
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-tool-exec
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/tools/dotnet-tool-exec.md
Document Version Independent Id
13f795eb-782f-93a4-e6b8-b071a00035fc
Platform Id
0562cb37-b84b-cd5e-946f-2fed3e5e0619
Article author
@meaghanlewis
Metadata
- ID: 2e0c9772-2db2-9893-4f52-8d55db948269
- PlatformId: 0562cb37-b84b-cd5e-946f-2fed3e5e0619
- Service: dotnet-fundamentals
Associated WorkItem - 537545</issue_description>
Comments on the Issue (you are @copilot in this section)
- Fixes dotnet/docs#50334
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.
Internal previews
| 📄 File | 🔗 Preview link |
|---|---|
| docs/core/tools/dotnet-tool-exec.md | dotnet tool exec |
| docs/core/tools/dotnet-tool-install.md | dotnet tool install command |
| docs/core/tools/dotnet-tool-update.md | dotnet tool update |