init command (NuGet CLI)
Applies to: package creation • Supported versions: 3.3+
Copies all the packages from a flat folder to a destination folder using a hierarchical layout as described for the add command. That is, using
init is equivalent to using the
add command on each package in the folder.
add, the destination must be either a local folder or a UNC path; HTTP package repositories such as nuget.org or private servers are not supported.
nuget init <source> <destination> [options]
<source> is the folder containing packages and
<destination> is the local folder or UNC pathname to which the packages are copied.
|ConfigFile||The NuGet configuration file to apply. If not specified,
|ForceEnglishOutput||(3.5+) Forces nuget.exe to run using an invariant, English-based culture.|
|Expand||Adds all files in each package that's added to the package source; same as
|Help||Displays help information for the command.|
|NonInteractive||Suppresses prompts for user input or confirmations.|
|Verbosity||Specifies the amount of detail displayed in the output: normal, quiet, detailed.|
Also see Environment variables
nuget init c:\foo c:\bar nuget init \\foo\packages \\bar\packages -Expand
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.