2018-03-08 22:42:32 +00:00
|
|
|
# choco install
|
|
|
|
|
|
|
|
> Install one or more packages with Chocolatey.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://chocolatey.org/docs/commands-install>.
|
2018-03-08 22:42:32 +00:00
|
|
|
|
|
|
|
- Install one or more space-separated packages:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`choco install {{package1 package2 ...}}`
|
2018-03-08 22:42:32 +00:00
|
|
|
|
|
|
|
- Install packages from a custom configuration file:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`choco install {{path\to\packages_file.config}}`
|
2018-03-08 22:42:32 +00:00
|
|
|
|
2023-11-17 10:39:26 +00:00
|
|
|
- Install a specific `nuspec` or `nupkg` file:
|
2018-03-08 22:42:32 +00:00
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`choco install {{path\to\file}}`
|
2018-03-08 22:42:32 +00:00
|
|
|
|
|
|
|
- Install a specific version of a package:
|
|
|
|
|
|
|
|
`choco install {{package}} --version {{version}}`
|
|
|
|
|
|
|
|
- Allow installing multiple versions of a package:
|
|
|
|
|
|
|
|
`choco install {{package}} --allow-multiple`
|
|
|
|
|
|
|
|
- Confirm all prompts automatically:
|
|
|
|
|
|
|
|
`choco install {{package}} --yes`
|
|
|
|
|
|
|
|
- Specify 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}}`
|