في هذه المقالة

NuGet CLI reference

في هذه المقالة

The NuGet Command Line Interface (CLI), nuget.exe, provides the full extent of NuGet functionality to install, create, publish, and manage packages without making any changes to project files.

To use any command, open a command window or bash shell, then run nuget followed by the command and appropriate options, such as nuget help pack (to view help on the pack command).

This documentation reflects the latest version of the NuGet CLI. For exact details for any given version that you're using, run nuget help for the desired command.

Installing nuget.exe

Windows

Visit nuget.org/downloads and select NuGet 3.3 or higher (2.8.6 is not compatible with Mono). The latest version is always recommended, and 4.1.0+ is required to publish packages to nuget.org.

Each download is the nuget.exe file directly. Instruct your browser to save the file to a folder of your choice. The file is not an installer; you won't see anything if you run it directly from the browser.

Add the folder where you placed nuget.exe to your PATH environment variable to use the CLI tool from anywhere.