नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
This article applies to: ✔️ .NET 6 SDK and later versions
Name
dotnet tool run - Invokes a local tool.
Synopsis
dotnet tool run <COMMAND NAME> [--allow-roll-forward]
dotnet tool run -h|--help
Description
The dotnet tool run command searches tool manifest files that are in scope for the current directory. When it finds a reference to the specified tool, it runs the tool. For more information, see Invoke a local tool.
Arguments
COMMAND_NAMEThe command name of the tool to run.
Options
--allow-roll-forwardAvailable starting with .NET 9.0 SDK. Allow tool to use a newer version of the .NET runtime if the runtime it targets isn't installed.
-
-?|-h|--helpPrints out a description of how to use the command.
Example
dotnet tool run dotnetsayRuns the
dotnetsaylocal tool.dotnet tool run dotnetsay --allow-roll-forwardRuns the
dotnetsaylocal tool and allows it to run on newer .NET versions if the target runtime isn't available.