NuGet version

2019/02/18 10:39
阅读数 51

Typing nuget help from the command line will in addition to the expected help information also list the current NuGet.exe version.





C:\WINDOWS\system32>nuget help
NuGet Version:
usage: NuGet <command> [args] [options]
Type 'NuGet help <command>' for help on a specific command.

Available commands:

add Adds the given package to a hierarchical source. http sources are not supported. For more info, goto

config Gets or sets NuGet config values.

delete Deletes a package from the server.

help (?) Displays general help information and help information about other commands.

init Adds all the packages from the <srcPackageSourcePath> to the hierarchical <destPackageSourcePath>. h
ttp feeds are not supported. For more info, goto

install Installs a package using the specified sources. If no sources are specified, all sources defined in
the NuGet configuration file are used. If the configuration file specifies no sources, uses the defa
ult NuGet feed.

list 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

locals Clears or lists local NuGet resources such as http requests cache, temp cache or machine-wide global
packages folder.

pack Creates a NuGet package based on the specified nuspec or project file.

push Pushes a package to the server and publishes it.
NuGet's default configuration is obtained by loading %AppData%\NuGet\NuGet.config, then loading any
nuget.config or .nuget\nuget.config starting from root of drive and ending in current directory.

restore Restores NuGet packages.

setApiKey Saves an API key for a given server URL. When no URL is provided API key is saved for the NuGet gall

sign Signs a NuGet package with the specified certificate.

sources Provides the ability to manage list of sources located in %AppData%\NuGet\NuGet.config

spec 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.

trusted-signers Provides the ability to manage the list of trusted signers.

update Update packages to latest available versions. This command also updates NuGet.exe itself.

verify Verifies a signed NuGet package.

For more information, visit


0 收藏
0 评论
0 收藏