dotnet-tool-run - Man Page

Invokes a local tool.

dotnet tool run

This article applies to: ✔️ .NET Core 3.1 SDK and later versions

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

Options

Example

  • dotnet tool run dotnetsay

    Runs the dotnetsay local tool.

  • dotnet tool run dotnetsay --allow-roll-forward

    Runs the dotnetsay local tool and allows it to run on newer .NET versions if the target runtime isn’t available.

See Also

Info

2025-09-15 .NET Documentation