rpk profile validate

Validate profile configuration and detect common issues.

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

  • Cloud settings: Whether from_cloud 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 is not expired

Usage

rpk profile validate <profile_name> [flags]

Examples

This section provides examples of how to use rpk profile validate.

Validate the current profile:

rpk profile validate

Validate a specific profile:

rpk profile validate my-profile

Global flags

Value Type Description

--config

string

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

-X, --config-opt

stringArray

Override rpk configuration settings; -X help for detail or -X list for terser detail.

--ignore-profile

bool

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

--profile

string

rpk profile to use.

-v, --verbose

bool

Enable verbose logging.