.NET Core SDK CLI Helpers
Usage
dotnet sdk [command]
dotnet sdk [version]
dotnet sdk get [version] [platform]
Command | Description |
---|---|
dotnet sdk [version] |
Swtiches to the [version] of .NET Core SDK version |
dotnet sdk latest |
Swtiches to the latest .NET Core SDK version |
dotnet sdk list |
Lists all installed .NET Core SDKs |
dotnet sdk releases |
Lists all available releases of .NET Core SDKs |
dotnet sdk get [version] [platform] |
Downloads the provided release version & platform. ('' or 'latest' for the latest release. Default platform is win-x64 ) |
dotnet sdk help |
Display help |
Installing the helpers
Windows
- Clone or download the repo on a desired location
- From within Admninistrator CMD prompt, run
dotnet .net
Mac
- Download
dotnet-sdk
script and set its executable bit withchmod +x dotnet-sdk
. - Create a symbolic link to it in
/usr/local/bin
using the commandln -s \<full_path\>/dotnet-sdk /usr/local/bin/
.
This will make it possible to invoke the command using the dotnet sdk
syntax.