You can download the command line tool from here
Deletes a package from the server.
nuget delete <package Id> <package version> [API Key] [options]
Specify the Id and version of the package to delete from the server.
| Source | Specifies the server URL. |
| NoPrompt | Do not prompt when deleting. |
| ApiKey | The API key for the server. |
| Help | help |
nuget delete MyPackage 1.0
nuget delete MyPackage 1.0 -NoPrompt
Displays general help information and help information about other commands.
nuget help [command]
Pass a command name to display help information for that command.
| All | Print detailed help for all available commands. |
| Markdown | Print detailed all help in markdown format. |
| Help | help |
nuget help
nuget help push
nuget ?
nuget push -?
Installs a package using the specified sources. If no sources are specified, all sources defined in %AppData%\NuGet\NuGet.config are used. If NuGet.config specifies no sources, uses the default NuGet feed.
nuget install packageId|pathToPackagesConfig [options]
Specify the id and optionally the version of the package to install. If a path to a packages.config file is used instead of an id, all the packages it contains are installed.
| Source | A list of packages sources to use for the install. |
| OutputDirectory | Specifies the directory in which packages will be installed. If none specified, uses the current directory. |
| Version | The version of the package to install. |
| ExcludeVersion | If set, the destination folder will contain only the package name, not the version number |
| Prerelease | Allows prerelease packages to be installed. This flag is not required when restoring packages by installing from packages.config. |
| Help | help |
nuget install elmah
nuget install packages.config
nuget install ninject -o c:\foo
Displays a list of packages from a given source. If no sources are specified, all sources defined in %AppData%\NuGet\NuGet.config are used. If NuGet.config specifies no sources, uses the default NuGet feed.
nuget list [search terms] [options]
Specify optional search terms.
| Source | A list of packages sources to search. |
| Verbose | Displays a detailed list of information for each package. |
| AllVersions | List all versions of a package. By default, only the latest package version is displayed. |
| Prerelease | Allow prerelease packages to be shown. |
| Help | help |
nuget list
nuget list -verbose -allversions
Creates a NuGet package based on the specified nuspec or project file.
nuget pack <nuspec | project> [options]
Specify the location of the nuspec or project file to create a package.
| OutputDirectory | Specifies the directory for the created NuGet package file. If not specified, uses the current directory. |
| BasePath | The base path of the files defined in the nuspec file. |
| Verbose | Shows verbose output for package building. |
| Version | Overrides the version number from the nuspec file. |
| Exclude | Specifies one or more wildcard patterns to exclude when creating a package. |
| Symbols | Determines if a package containing sources and symbols should be created. When specified with a nuspec, creates a regular NuGet package file and the corresponding symbols package. |
| Tool | Determines if the output files of the project should be in the tool folder. |
| Build | Determines if the project should be built before building the package. |
| NoDefaultExcludes | Prevent default exclusion of NuGet package files and files and folders starting with a dot e.g. .svn. |
| NoPackageAnalysis | Specify if the command should not run package analysis after building the package. |
| Properties | Provides the ability to specify a semicolon ";" delimited list of properties when creating a package. |
| Help | help |
nuget pack
nuget pack foo.nuspec
nuget pack foo.csproj
nuget pack foo.csproj -Build -Symbols -Properties Configuration=Release
nuget pack foo.nuspec -Version 2.1.0
Publishes a package that was uploaded to the server but not added to the feed.
nuget publish <package id> <package version> <API Key> [options]
Specify the id and version of the package that will be published to the feed.
| Source | Specifies the server URL. |
| Help | help |
nuget push foo.nupkg 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
nuget push foo.nupkg 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -s http://example.com/nuget-publish-endpoint
nuget push foo.nupkg
nuget push foo.nupkg.symbols
Pushes a package to the server and optionally publishes it.
nuget push <package path> [API key] [options]
Specify the path to the package and your API key to push the package to the server.
| CreateOnly | Specifies if the package should be created and uploaded to the server but not published to the server. False by default. |
| Source | Specifies the server URL. |
| ApiKey | The API key for the server. |
| Help | help |
nuget push foo.nupkg 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
nuget push foo.nupkg 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -s http://customsource/
nuget push foo.nupkg
nuget push foo.nupkg.symbols
Saves an API key for a given server URL. When no URL is provided API key is saved for the NuGet gallery.
nuget setapikey <API key> [options]
Specify the API key to save and an optional URL to the server that provided the API key.
| Source | Server URL where the API key is valid. |
| Help | help |
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
nuget setapikey 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -Source http://example.com/nugetfeed
Provides the ability to manage list of sources located in %AppData%\NuGet\NuGet.config
nuget sources <List|Add|Remove|Enable|Disable> -Name [name] -Source [source]
| Name | Name of the source. |
| Source | Path to the package(s) source. |
| Help | help |
Generates a nuspec for a new package. If this command is run in the same folder as a project file (.csproj, .vbproj, .fsproj), it will create a tokenized nuspec file.
nuget spec [package id]
| AssemblyPath | Assembly to use for metadata. |
| Force | Overwrite nuspec file if it exists. |
| Help | help |
nuget spec
nuget spec MyPackage
nuget spec -a MyAssembly.dll
Update packages to latest available versions. This command also updates NuGet.exe itself.
nuget update <packages.config|solution>
| Source | A list of package sources to search for updates. |
| Id | Package ids to update. |
| RepositoryPath | Path to the local packages folder (location where packages are installed). |
| Safe | Looks for updates with the highest version available within the same major and minor version as the installed package. |
| Self | Update the running NuGet.exe to the newest version available from the server. |
| Verbose | Show verbose output while updating. |
| Prerelease | Allows updating to prerelease versions. This flag is not required when updating prerelease packages that are already installed. |
| Help | help |
nuget update
nuget update -Safe
nuget update -Self