dotnet-installer/src/dotnet
2016-11-23 10:16:44 -08:00
..
CommandLine https://github.com/dotnet/cli/issues/4293 2016-10-11 17:29:09 -07:00
commands Remove Exclude from Compile/Embeddedresource 2016-11-23 10:16:44 -08:00
Properties Adding "BuildRid" to the CLI as a fallback RID to use when inferring which RID to use when building, running, and publishing self-contained applications. 2016-09-29 22:39:00 -05:00
dotnet.csproj Eliminate imports from CLI, where possible (#4673) 2016-11-10 10:19:37 -08:00
DotNetCommandFactory.cs Invoke compile-csc in-proc 2016-04-16 00:28:57 -05:00
DotnetFiles.cs Move all CLI libraries to be single-TFM targeting netstandard1.3 where possible. 2016-10-10 15:57:08 -05:00
ForwardingApp.cs [WIP] Removes *3 verbs, making msbuild the driver (#4456) 2016-10-27 18:46:43 -07:00
ICommandRunner.cs Fix tests 2016-08-26 18:14:04 -07:00
ITelemetry.cs Add performance tracing 2016-04-29 08:16:37 -07:00
MulticoreJitActivator.cs Remove use of Microsoft.Extensions.PlatformAbstractions 2016-06-08 16:28:52 -07:00
MulticoreJitProfilePathCalculator.cs Updating the xunit version to one that does not depend on internalabstractions. 2016-08-10 13:40:13 -07:00
NuGetForwardingApp.cs Merge Nuget changes 2016-08-26 17:23:33 -07:00
Program.cs Add the path to the dotnet being used to dotnet--info 2016-11-20 10:29:23 -08:00
ProjectGlobbingResolver.cs [WIP] Removes *3 verbs, making msbuild the driver (#4456) 2016-10-27 18:46:43 -07:00
README.md Fixed links in dotnet READMEs (#3642) 2016-06-22 15:19:10 -07:00
Telemetry.cs Custom logger for MSBuild to receive telemetry events (#4551) 2016-10-31 16:16:39 -07:00

% DOTNET(1) % Microsoft Corporation dotnetclifeedback@microsoft.com % June 2016

NAME

dotnet -- General driver for running the command-line commands

SYNOPSIS

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

DESCRIPTION

dotnet is a generic driver for the Command Line Interface (CLI) toolchain. Invoked on its own, it will give out brief usage instructions.

Each specific feature is implemented as a command. In order to use the feature, the command is specified after dotnet, such as dotnet build. All of the arguments following the command are its own arguments.

The only time dotnet is used as a command on its own is to run portable apps. Just specify a portable application DLL after the dotnet verb to execute the application.

OPTIONS

-v, --verbose

Enables verbose output.

--version

Prints out the version of the CLI tooling.

--info

Prints out more detailed information about the CLI tooling, such as the current operating system, commit SHA for the version, etc.

-h, --help

Prints out a short help and a list of current commands.

DOTNET COMMANDS

The following commands exist for dotnet:

  • dotnet-new
    • Initializes a C# or F# console application project.
  • dotnet-restore
    • Restores the dependencies for a given application.
  • dotnet-build
    • Builds a .NET Core application.
  • dotnet-publish
    • Publishes a .NET portable or self-contained application.
  • dotnet-run
    • Runs the application from source.
  • dotnet-test
    • Runs tests using a test runner specified in the project.json.
  • dotnet-pack
    • Creates a NuGet package of your code.

EXAMPLES

dotnet new

Initializes a sample .NET Core console application that can be compiled and run.

dotnet restore

Restores dependencies for a given application.

dotnet compile

Compiles the application in a given directory.

dotnet myapp.dll

Runs a portable app named myapp.dll.

ENVIRONMENT

DOTNET_PACKAGES

The primary package cache. If not set, it defaults to $HOME/.nuget/packages on Unix or %HOME%\NuGet\Packages on Windows.

DOTNET_SERVICING

Specifies the location of the servicing index to use by the shared host when loading the runtime.

DOTNET_CLI_TELEMETRY_OPTOUT

Specifies whether data about the .NET Core tools usage is collected and sent to Microsoft. true to opt-out of the telemetry feature (values true, 1 or yes accepted); otherwise, false (values false, 0 or no accepted). If not set, it defaults to false, that is, the telemetry feature is on.