dotnet -o new console code example Example: dotnet new console mkdir MyApp; cd MyApp; dotnet new console