choco pack

Package a NuGet specification into a nupkg file. More information: https://chocolatey.org/docs/commands-pack.

choco pack {{path\to\specification_file}}

choco pack {{path\to\specification_file}} --version {{version}}

choco pack {{path\to\specification_file}} --output-directory {{path\to\output_directory}}