dotnet new with version code example

Example 1: how to change dotnet version

dotnet new globaljson --sdk-version [Type version number here] --force

version number examples:
- 2.1.509
- 3.0.100-preview-010184

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