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

choco new — Generate new package specification files with Chocolatey. More information: <https://docs.chocolatey

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandfilesnewclipackagechoco newspecificationgenerate
windows

Problem

How to use the choco new command: Generate new package specification files with Chocolatey. More information: <https://docs.chocolatey.org/en-us/create/commands/new/>.

Solution

choco new — Generate new package specification files with Chocolatey. More information: <https://docs.chocolatey.org/en-us/create/commands/new/>.

Create a new package skeleton:
choco new {{package}}


Create a new package with a specific version:
choco new {{package}} --version {{version}}


Create a new package with a specific maintainer name:
choco new {{package}} --maintainer {{maintainer_name}}


Create a new package in a custom output directory:
choco new {{package}} {{[--out|--output-directory]}} {{path\to\directory}}


Create a new package with specific 32-bit and 64-bit installer URLs:
choco new {{package}} url="{{url}}" url64="{{url}}"

Code Snippets

Create a new package skeleton

choco new {{package}}

Create a new package with a specific version

choco new {{package}} --version {{version}}

Create a new package with a specific maintainer name

choco new {{package}} --maintainer {{maintainer_name}}

Create a new package in a custom output directory

choco new {{package}} {{[--out|--output-directory]}} {{path\to\directory}}

Create a new package with specific 32-bit and 64-bit installer URLs

choco new {{package}} url="{{url}}" url64="{{url}}"

Context

tldr-pages: windows/choco new

Revisions (0)

No revisions yet.