Skip to main content
Manage CLI configuration. Settings are persisted to a local config file. For an interactive local setup, prefer oc login. Use oc config set api-key for a separately managed key.

oc config set <key> <value>

Supported keys: api-key, api-url.
Setting api-key explicitly clears CLI-login management metadata, so a later oc logout cannot revoke a manually supplied key.

oc config show

Display current configuration. The API key is masked (first 4 and last 4 characters shown).