

NET Framework projects, follow the steps described in this article to create a package. Note that Visual Studio does not automatically include a CLI tool.įor non-SDK-style projects, typically.

To install NuGet CLI tools, see Install NuGet client tools. AddĪdds a specified package to a non-HTTP package source (a folder or UNC path) in a hierarchical layout, wherein folders are created for the package ID and version number.No matter what your package does or what code it contains, you use one of the CLI tools, either nuget.exe or dotnet.exe, to package that functionality into a component that can be shared with and used by any number of other developers. The following are the most commonly used commands with examples. Updates a project's packages to the latest available versions. Manages package sources in configuration files. Mirrors a package and its dependencies from a source to a target repository. Installs a package into the current project but does not modify projects or reference files. Removes or unlists a package from a package source.Īdds packages from a folder to a package source using hierarchical layout. nuspec file, using tokens if generating the file from a Visual Studio project.Īdds a package to a non-HTTP package source using hierarchical layout. Saves an API key for a given package source when that package source requires a key for access. When running on Mono, restoring packages using the PackageReference format is not supported. Restores all packages referenced by the package management format in use. Lists locations of the global-packages, http-cache, and temp folders and clears the contents of those folders. When running on Mono, creating a package from a project file is not supported.ĭisplays help information or help for a command.

The file is not an installer, and it is the nuget.exe file directly.

