Linux "dotnet" Command Line Options and Examples
- general driver for running the command-line commands

dotnet is a generic driver for the CLI toolchain. Invoked on its own, it will give out brief usage instructions. Each specific feature is implemented as a command.


Usage:

dotnet [--version] [--help] [--verbose] < command > [< args >]




Command Line Options:

-v
Enable verbose output.
dotnet -v ...
--version
Print out the version of the CLI tooling
dotnet --version ...
-h
Print out a short help and a list of current commands.DOTNET COMMANDSThe following commands exist for dotnet.dotnet-compile(1)Compile the application to either an intermidiate language (IL) or to a native binary.dotnet-restore(1)Restores the dependencies for a given application.dotnet-run(1)Runs the application from source.dotnet-publish(1)Publishes a flat directory that contains the application and its dependencies, including the runtime binaries.dotnet-test(1)Runs tests using a test runner specified in project.json.dotnet-new(1)Initializes a sample .NET Core console application.EXAMPLESdotnew newInitializes a sample .NET Core console application that can be compiled and ran.dotnet restoreRestores dependencies for a given application.dotnet compileCompiles the application in a given directory.ENVIRONMENTDOTNET_PACKAGESThe primary package cache. If not set, defaults to $HOME/.nuget/packages on Unix or %LOCALAPPDATA%\NuGet\Packages (TBD) on Windows.DOTNET_PACKAGES_CACHEThe secondary cache. This is used by shared hosters (such as Azure) to provide a cache of pre-downloaded common packages on a faster disk. If not set it is not used.DOTNET_SERVICINGSpecifies the location of the servicing index to use by the shared host when loading the runtime.
dotnet -h ...