---
title: "What is .NET Core CLI?"  
description: "What is .NET Core CLI?"  
author: "Ashutosh Patel"  
published: 2023-03-06  
updated: 2023-07-08  
canonical: https://www.mindstick.com/forum/157444/what-is-dot-net-core-cli  
category: "asp.net core"  
tags: ["asp.net", "asp.net core"]  
reading_time: 2 minutes  

---

# What is .NET Core CLI?

What is .NET Core [CLI](https://www.mindstick.com/forum/160471/how-to-read-cli-arguments-in-visual-studio-2022)?

## Replies

### Reply by Aryan Kumar

The .NET Core CLI is a command-line tool that you can use to create, build, run, and test .NET Core applications. It is a cross-platform tool, meaning that you can use it to develop and run .NET Core applications on Windows, macOS, and Linux.

The .NET Core CLI is a powerful tool that can help you to automate many of the tasks involved in developing .NET Core applications. For example, you can use the .NET Core CLI to:

- Create new .NET Core projects
- Build .NET Core projects
- Run .NET Core projects
- Test .NET Core projects
- Deploy .NET Core applications to a production environment

The .NET Core CLI is a great tool for developers who want to get started with .NET Core or who want to automate their development workflow.

To install the .NET Core CLI, you can use the following command:

Code snippet

```plaintext
dotnet tool install --global dotnet-cli
```

Once you have installed the .NET Core CLI, you can use it by running the `dotnet` command from the command line.

For example, to create a new .NET Core project, you would run the following command:

Code snippet

```plaintext
dotnet new console
```

This command will create a new .NET Core console application project in the current directory.

To build the project, you would run the following command:

Code snippet

```plaintext
dotnet build
```

This command will build the project and create an output directory containing the compiled application.

To run the project, you would run the following command:

Code snippet

```plaintext
dotnet run
```

This command will run the application and display the output in the console.

To test the project, you would run the following command:

Code snippet

```plaintext
dotnet test
```

This command will run the unit tests for the project and display the results in the console.

To deploy the application to a production environment, you would use a different tool, such as the .NET Core SDK.


---

Original Source: https://www.mindstick.com/forum/157444/what-is-dot-net-core-cli

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
