2025-03-14 21:59:59 -06:00
|
|
|
# choco apikey
|
|
|
|
|
|
|
|
|
|
> Manage API keys for Chocolatey sources.
|
|
|
|
|
> More information: <https://chocolatey.org/docs/commands-apikey>.
|
|
|
|
|
|
|
|
|
|
- Display a list of sources and their API keys:
|
|
|
|
|
|
|
|
|
|
`choco apikey`
|
|
|
|
|
|
|
|
|
|
- Display a specific source and its API key:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`choco apikey {{[-s|--source]}} "{{source_url}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Set an API key for a source:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`choco apikey {{[-s|--source]}} "{{source_url}}" {{[-k|--api-key]}} "{{api_key}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Remove an API key for a source:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`choco apikey {{[-s|--source]}} "{{source_url}}" --remove`
|