dotnet new to create core 3.1 using cli code example
Example 1: dotnet new console
mkdir MyApp; cd MyApp;
dotnet new console
Example 2: dotnet new options
dotnet new <TEMPLATE> [--dry-run] [--force] [-i|--install {PATH|NUGET_ID}]
[-lang|--language {"C#"|"F#"|VB}] [-n|--name <OUTPUT_NAME>]
[--nuget-source <SOURCE>] [-o|--output <OUTPUT_DIRECTORY>]
[-u|--uninstall] [--update-apply] [--update-check] [Template options]
dotnet new <TEMPLATE> [-l|--list] [--type <TYPE>]
dotnet new -h|--help