dotnet new console with name code example Example: dotnet new console mkdir MyApp; cd MyApp; dotnet new console