asp.net core mvc cli code example Example 1: dotnet create project command line dotnet new console Example 2: dotnet new emty webapp dotnet new web -o <Web app name>