| title | NuGet CLI spec command |
|---|---|
| description | Reference for the nuget.exe spec command |
| author | JonDouglas |
| ms.author | jodou |
| ms.date | 01/18/2018 |
| ms.topic | reference |
Applies to: package creation • Supported versions: all
Generates a .nuspec file for a new package. If run in the same folder as a project file (.csproj, .vbproj, .fsproj), spec creates a tokenized .nuspec file, that defaults to the MIT License. For additional information, see Creating a Package.
nuget spec [<packageID>] [options]
where <packageID> is an optional package identifier to save in the .nuspec file.
-
-AssemblyPathSpecifies the path to the assembly to use for metadata.
-
-ForceOverwrites any existing
.nuspecfile. -
-ForceEnglishOutput(3.5+) Forces nuget.exe to run using an invariant, English-based culture.
-
-?|-helpDisplays help information for the command.
-
-NonInteractiveSuppresses prompts for user input or confirmations.
-
-Verbosity [normal|quiet|detailed]Specifies the amount of detail displayed in the output:
normal(the default),quiet, ordetailed.
Also see Environment variables
nuget spec
nuget spec MyPackage
nuget spec -AssemblyPath MyAssembly.dll