HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

choco pack — Package a NuGet specification into a `.nupkg` file. More information: <https://docs.chocolatey.org/e

Submitted by: @import:tldr-pages··
0
Viewed 0 times
nugetcommandchoco packnupkgcliintopackagespecification
windows

Problem

How to use the choco pack command: Package a NuGet specification into a .nupkg file. More information: <https://docs.chocolatey.org/en-us/create/commands/pack/>.

Solution

choco pack — Package a NuGet specification into a .nupkg file. More information: <https://docs.chocolatey.org/en-us/create/commands/pack/>.

Package a NuGet specification to a .nupkg file:
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:
choco pack {{path\to\specification_file}} {{[--out|--output-directory]}} {{path\to\output_directory}}

Code Snippets

Package a NuGet specification to a `.nupkg` file

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

choco pack {{path\to\specification_file}} {{[--out|--output-directory]}} {{path\to\output_directory}}

Context

tldr-pages: windows/choco pack

Revisions (0)

No revisions yet.