kf profile
Manage local CLI profiles.
Profiles are local-only. Their values bind endpoint, tenant, environment, and OAuth metadata.
kf profile list
List local CLI profiles without printing raw API keys.
Returns the profile name, endpoint, defaults, and OAuth metadata.
Example
kf profile list --prettykf profile show
Show one local CLI profile with only the redacted API key preview.
Shows defaults and OAuth metadata for a single profile.
| Flag | Required | Description |
|---|---|---|
--profile <name> | no | Profile to show; defaults to the active profile. |
Example
kf profile show --profile stagingkf profile use
Set the active local CLI profile.
Marks the named profile as active in the local config file.
Example
kf profile use stagingkf profile clear
Delete one local CLI profile.
Removes the named profile and its credentials.
Example
kf profile clear staging