This cheat sheet is courtesy Ben Day and is available here. This Markdown file is just for easy reference for programmers.
What follows are the excerpts from Ben's blog.
The nice thing about the items on this ‘cheat sheet’ is that they work on Windows, Mac, and Linux. [Note 2/13/2017: Want an example script? Check this out.
dotnet new sln
dotnet new classlib
dotnet new classlib -f netcoreapp1.1
dotnet new mvc
dotnet new mvc -f netcoreapp1.1
dotnet new mstest -f netcoreapp1.1
dotnet sln MySolutionFile.sln add .\src\MySolution.WebUi\MySolution.WebUi.csproj
dotnet add reference ..\MySolution.Api\MySolution.Api.csproj
dotnet restore
dotnet build