2025-03-14 21:59:59 -06:00
|
|
|
# choco pack
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> Package a NuGet specification into a `.nupkg` file.
|
|
|
|
|
> More information: <https://docs.chocolatey.org/en-us/create/commands/pack/>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Package a NuGet specification to a `.nupkg` file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`choco pack {{path\to\specification_file}}`
|
|
|
|
|
|
|
|
|
|
- Package a NuGet specification specifying the version of the resulting file:
|
|
|
|
|
|
|
|
|
|
`choco pack {{path\to\specification_file}} --version {{version}}`
|
|
|
|
|
|
|
|
|
|
- Package a NuGet specification to a specific directory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`choco pack {{path\to\specification_file}} {{[--out|--output-directory]}} {{path\to\output_directory}}`
|