mirror of https://github.com/CrimsonTome/tldr.git
33 lines
760 B
Markdown
33 lines
760 B
Markdown
# choco source
|
|
|
|
> Manage sources for packages with Chocolatey.
|
|
> More information: <https://chocolatey.org/docs/commands-source>.
|
|
|
|
- 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:
|
|
|
|
`choco source add --name {{name}} --source {{url}} --cert {{path\to\certificate_file}}`
|
|
|
|
- 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}}`
|