All apps/.NET CLI

.NET CLI

dotnet

The .NET command-line interface (CLI) is a cross-platform toolchain for developing, building, running, and publishing .NET applications.

Runs as dotnet|macOS, Linux, Windows|learn.microsoft.com

Autocomplete

Fig spec, with what the manifest adds · 19 subcommands · 13 options
Published once and never changed; check the digest before caching
sha256
6b7a60f4ff7146f64e13e94b5cafc26927c69382f8cce69ad7ebd11116868b32
Size
12314 bytes
Subcommands19 subcommands
dotnet new
dotnet add
dotnet list
dotnet remove
dotnet build
dotnet build-server
dotnet clean
dotnet format
dotnet migrate
dotnet msbuild
dotnet nuget
dotnet pack
dotnet publish
dotnet restore
dotnet run
dotnet sln
dotnet store
dotnet test
dotnet tool
OptionsOn dotnet itself
--version
Prints out the version of the .NET SDK used by dotnet commands. Includes the effects of any global.json
--info
Prints out detailed information about a .NET installation and the machine environment, such as the current operating system, and commit SHA of the .NET version
--list-runtimes
Prints out a list of the installed .NET runtimes. An x86 version of the SDK lists only x86 runtimes, and an x64 version of the SDK lists only x64 runtimes
--list-sdks
Prints out a list of the installed .NET SDKs
-?-h--help
Prints out a list of available commands
-d--diagnostics
Enables diagnostic output
-v--verbosity
Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]. Not supported in every command. See specific command page to determine if this option is available <verbosity>
--additionalprobingpath
Path containing probing policy and assemblies to probe <path>
--additional-deps
Path to an additional .deps.json file. A deps.json file contains a list of dependencies, compilation dependencies, and version information used to address assembly conflicts. For more information, see Runtime Configuration Files on GitHub <deps>
-depsfile
Path to the deps.json file. A deps.json file is a configuration file that contains information about dependencies necessary to run the application. This file is generated by the .NET SDK <deps>
--runtimeconfig
Path to a runtimeconfig.json file. A runtimeconfig.json file is a configuration file that contains run-time settings <path>
--roll-forward
Controls how roll forward is applied to the app. The SETTING can be one of the following values. If not specified, Minor is the default <setting>
--fx-version
Version of the .NET runtime to use to run the application <version>
ArgumentsPositional, in order
<command>
· optional · filepaths