dotnet-tool-execute
1.0.8-preview
This is a prerelease version of dotnet-tool-execute.
dotnet tool install --global dotnet-tool-execute --version 1.0.8-preview
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local dotnet-tool-execute --version 1.0.8-preview
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-tool-execute&version=1.0.8-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package dotnet-tool-execute --version 1.0.8-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
dotnet-tool-execute (dtx)
A .NET tool which installs and executes .NET tools.
Getting Started
To install the dtx
tool, run the following command:
dotnet tool install --global dotnet-tool-execute --prerelease --add-source https://api.nuget.org/v3/index.json --ignore-failed-sources
This will install dtx
globally and add it to your %PATH%
.
MCP Servers
You can use the dtx
tool to run MCP servers that are available as .NET tools.
{
"mcp": {
"servers": {
"my-mcp-server": {
"type": "stdio",
"command": "dtx",
"args": [
"my.package.id", // The name of the NuGet package
"--source",
"https://api.nuget.org/v3/index.json", // Specify feed of your MCP server in case the user doesn't have it in their NuGet config
"--prerelease", // Optionally include pre-release packages
"--", // Arguments after this '--' are passed to the tool
"arg1",
"arg2"
]
}
}
}
}
Usage
dtx <packageId> [options] -- [tool arguments]
Arguments:
<packageId> The name of the NuGet package of the tool to install and execute.
Options:
--version <VERSION> The version of the tool package to install.
--configfile <FILE> The NuGet configuration file to use.
--tool-manifest <PATH> Path to the manifest file.
--add-source <ADDSOURCE> Add an additional NuGet package source to use during installation.
--source <SOURCE> Replace all NuGet package sources to use during installation with these.
--framework <FRAMEWORK> The target framework to install the tool for.
--prerelease Include pre-release packages.
--disable-parallel Prevent restoring multiple projects in parallel.
--ignore-failed-sources Treat package source failures as warnings.
--no-http-cache Do not cache packages and http requests.
--interactive Allows the command to stop and wait for user input or action (for example to complete authentication).
-v, --verbosity <LEVEL> Set the MSBuild verbosity level. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].
-a, --arch <arch> The target architecture.
--allow-downgrade Allow package downgrade when installing a .NET tool package.
--allow-roll-forward Allow a .NET tool to roll forward to newer versions of the .NET runtime if the runtime it targets isn't installed.
-s, --silent Suppress all output while installing the tool.
-?, -h, --help Show command line help.
To specify command-line arguments for the tool being executed, use --
followed by the arguments. For example:
> dtx botsay -- Hello from botsay!
You can invoke the tool using the following command: botsay
Tool 'botsay' (version '1.0.0') was successfully installed.
Hello from botsay!
__________________
\
\
....
....'
....
..........
.............'..'..
................'..'.....
.......'..........'..'..'....
........'..........'..'..'.....
.'....'..'..........'..'.......'.
.'..................'... ......
. ......'......... .....
. _ __ ......
.. # ## ......
.... . .......
...... ....... ............
................ ......................
........................'................
......................'..'...... .......
.........................'..'..... .......
........ ..'.............'..'.... ..........
..'..'... ...............'....... ..........
...'...... ...... .......... ...... .......
........... ....... ........ ......
....... '...'.'. '.'.'.' ....
....... .....'.. ..'.....
.. .......... ..'........
............ ..............
............. '..............
...........'.. .'.'............
............... .'.'.............
.............'.. ..'..'...........
............... .'..............
......... ..............
.....
Tools are installed to %LocalAppData%\dtx
and then executed.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
1.0.8-preview | 126 | 5/5/2025 |