.NET CLI
.NET CLI is the command-line toolset for creating, building, running, testing, publishing, and managing .NET applications and projects.
ASP.NET Core in Action, 3e
The .NET CLI is a command-line interface for creating, building, running, and managing .NET applications and projects.
- How it is used
- Uses the CLI throughout application development, from template creation and local testing to deployment preparation.
- How deep it goes
- Explains common commands, automatic restore and build behavior, and publishing output through practical workflows.
- Examples
- Creates a minimal API, a Razor Pages application, and a worker service from templates.
- What you can do after
- Apply it via the .NET CLI to create, build, run, and publish an application, and generate JWTs for local testing.
.NET MAUI in Action
.NET CLI is the command-line interface for creating, building, running, testing, and managing .NET projects.
- How it is used
- Creates and runs .NET MAUI applications from a terminal as a lightweight alternative to Visual Studio.
- How deep it goes
- Explains templates, default values, switches, help, and build-command anatomy through concrete project and platform commands.
- Examples
- Uses AlohaWorld and HelloWorld projects, blank templates, terminal listings, and iOS build-and-run commands.
- What you can do after
- Build it from scratch by creating a .NET MAUI project, customizing template options, and running it for a supported target platform.
Also covered in
- GitHub Actions in Action: Continuous integration and delivery for DevOps
- Building Web APIs with ASP.NET Core
- F# in Action: A Revised Edition of Get Programming with F#
- .NET in Action, Second Edition
Related concepts
- dotnet testused by · dotnet test is a .NET CLI command that builds a project or solution and discovers and executes its tests.
- .NET SDKequivalent to · .NET SDK is Microsoft's software development kit providing tools, compilers, libraries, commands, and templates for building, testing, and publishing .NET applications.
- Visual Studioalternative to · Visual Studio is Microsoft's integrated development environment for creating, building, debugging, testing, and managing software projects.
- code reloadingcontrasts with · Code reloading is a development technique that detects changed code or resources and refreshes, reevaluates, or restarts affected application components without requiring a full manual restart.
- Dockeruses · Docker is a platform and toolset for building, distributing, and running applications in containers.
- dotnet runhas part · dotnet run is a .NET CLI command that builds and runs an application from its project.
Questions about .NET CLI
What is .NET CLI?
.NET CLI is the command-line toolset for creating, building, running, testing, publishing, and managing .NET applications and projects.
Which Manning books explain .NET CLI?
ASP.NET Core in Action, 3e and .NET MAUI in Action.
What is the difference between .NET CLI and Visual Studio?
.NET CLI is the command-line toolset for creating, building, running, testing, publishing, and managing .NET applications and projects. Visual Studio is Microsoft's integrated development environment for creating, building, debugging, testing, and managing software projects.
What are the parts of .NET CLI?
.NET CLI includes dotnet run.
What is .NET CLI also called?
.NET CLI is also called dotnet CLI.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

