dotnet CLI NuGet commands (original) (raw)

The dotnet command-line interface (CLI), which runs on Windows, Mac OS X, and Linux, provides a number of essential commands such as installing, restoring, and publishing packages. If dotnet satisfies your needs, it's not necessary to use nuget.exe.

For examples of using these commands to consume packages, see Install and manage packages using the dotnet CLI. For examples of using these commands to create packages, see Create and publish a package using the dotnet CLI.

For the complete command reference on dotnet CLI, see .NET Core command-line interface (CLI) tools.

Package consumption

Package creation