Skip to content

The dotnet CLI

The .NET Command-Line Interface (CLI) is a cross-platform tool for developing, building, running, and publishing .NET applications.

CommandPurpose
dotnet newCreate project from template
dotnet buildCompile the project
dotnet runBuild and execute
dotnet testRun unit tests
dotnet publishCreate deployable output
Terminal window
dotnet [command] [arguments] [options]
  • 1.4.1 dotnet new create project from template
  • 1.4.2 dotnet build compile
  • 1.4.3 dotnet run build and execute
  • 1.4.4 dotnet test run unit tests
  • 1.4.5 dotnet publish create deployable output