rpk profile validate

Validate profile configuration and detect common issues.

This command checks the current profile (or a specified profile) for:

  • Cloud settings: Whether the from_cloud setting matches the broker URLs

  • Auth reference: Whether the profile references a valid authentication

  • Auth kind: Whether the authentication type is correctly configured

  • Auth token: Whether the token exists and has not expired

Usage

rpk profile validate [PROFILE_NAME] [flags]

Flags

Value Type Description

-h, --help

-

Help for validate.

--config

string

Redpanda or rpk config file; default search paths are /var/lib/redpanda/.config/rpk/rpk.yaml, $PWD/redpanda.yaml, and /etc/redpanda/redpanda.yaml.

-X, --config-opt

stringArray

Override rpk configuration settings. See rpk -X or execute rpk -X help for inline detail or rpk -X list for terser detail.

--ignore-profile

-

Ignore rpk.yaml and redpanda.yaml; use default settings.

--profile

string

Profile to use. See rpk profile for more details.

-v, --verbose

-

Enable verbose logging.

Examples

Validate the current profile:

rpk profile validate

Validate a specific profile:

rpk profile validate my-profile