snippetbashTip
choco install — Install one or more packages with Chocolatey. More information: <https://docs.chocolatey.org/en-us/c
Viewed 0 times
commandinstallchoco installcliwithmoreonepackages
windows
Problem
How to use the
choco install command: Install one or more packages with Chocolatey. More information: <https://docs.chocolatey.org/en-us/choco/commands/install/>.Solution
choco install — Install one or more packages with Chocolatey. More information: <https://docs.chocolatey.org/en-us/choco/commands/install/>.Install one or more packages:
choco install {{package1 package2 ...}}Install packages from a custom configuration file:
choco install {{path\to\packages_file.config}}Install a specific
.nuspec or .nupkg file:choco install {{path\to\file}}Install a specific version of a package:
choco install {{package}} --version {{version}}Allow installing multiple versions of a package:
choco install {{package}} --allow-multipleConfirm all prompts automatically:
choco install {{package}} --yesSpecify a custom source to receive packages from:
choco install {{package}} --source {{source_url|alias}}Provide a username and password for authentication:
choco install {{package}} --user {{username}} --password {{password}}Code Snippets
Install one or more packages
choco install {{package1 package2 ...}}Install packages from a custom configuration file
choco install {{path\to\packages_file.config}}Install a specific `.nuspec` or `.nupkg` file
choco install {{path\to\file}}Install a specific version of a package
choco install {{package}} --version {{version}}Allow installing multiple versions of a package
choco install {{package}} --allow-multipleContext
tldr-pages: windows/choco install
Revisions (0)
No revisions yet.