# dotnet new webapi

The CLI command that creates a new ASP.NET Core API project.

## What does `dotnet new webapi` do?

`dotnet new webapi` creates a new ASP.NET Core API project from Microsoft's template, ready to run.

```bash
dotnet new webapi -n RecipeBox.Api
cd RecipeBox.Api
dotnet run
```

Level: Novice · [More ASP.NET Core terms at this level](https://www.ask-codey.com/glossary?category=aspnet-core&level=1)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/dotnet-new-webapi
