2018-03-29 17:03:56 +01:00
|
|
|
# choco source
|
|
|
|
|
|
|
|
> Manage sources for packages with Chocolatey.
|
2019-06-03 01:06:36 +01:00
|
|
|
> More information: <https://chocolatey.org/docs/commands-source>.
|
2018-03-29 17:03:56 +01:00
|
|
|
|
|
|
|
- List currently available sources:
|
|
|
|
|
|
|
|
`choco source list`
|
|
|
|
|
|
|
|
- Add a new package source:
|
|
|
|
|
|
|
|
`choco source add --name {{name}} --source {{url}}`
|
|
|
|
|
|
|
|
- Add a new package source with credentials:
|
|
|
|
|
|
|
|
`choco source add --name {{name}} --source {{url}} --user {{username}} --password {{password}}`
|
|
|
|
|
|
|
|
- Add a new package source with a client certificate:
|
|
|
|
|
2023-02-20 07:23:49 +00:00
|
|
|
`choco source add --name {{name}} --source {{url}} --cert {{path\to\certificate_file}}`
|
2018-03-29 17:03:56 +01:00
|
|
|
|
|
|
|
- Enable a package source:
|
|
|
|
|
|
|
|
`choco source enable --name {{name}}`
|
|
|
|
|
|
|
|
- Disable a package source:
|
|
|
|
|
|
|
|
`choco source disable --name {{name}}`
|
|
|
|
|
|
|
|
- Remove a package source:
|
|
|
|
|
|
|
|
`choco source remove --name {{name}}`
|