Agentic Data Plane

rpk profile

Manage rpk configuration profiles. Profiles store connection settings for different clusters, making it easy to switch between environments.

Usage

rpk profile [flags]

Subcommands

Command Description

rpk profile clear

Clear the current profile. This command clears the current profile, which can be useful to unset a production cluster profile.

rpk profile create

Create a new rpk profile with connection settings for a Redpanda cluster.

rpk profile current

Print the current profile name. This is a tiny command that simply prints the current profile name, which may be useful in scripts, or a PS1, or to confirm what you have selected.

rpk profile delete

Delete an rpk profile. Deleting a profile removes it from the rpk.yaml file.

rpk profile edit

Edit an rpk profile. This command opens your default editor to edit the specified profile, or the current profile if no profile is specified.

rpk profile edit-globals

Edit rpk globals. This command opens your default editor to edit the rpk global configurations.

rpk profile list

List rpk profiles.

rpk profile print

Print rpk profile configuration. If no name is specified, this command prints the current profile as it exists in the rpk.yaml file.

rpk profile print-globals

Print rpk global configuration.

rpk profile prompt

Prompt a profile name formatted for a PS1 prompt. This command prints ANSI-escaped text per your current profile’s prompt field.

rpk profile rename-to

Rename the current rpk profile. This command renames the currently active profile to the specified name.

rpk profile set

Set a configuration field in the current rpk profile.

rpk profile set-globals

Set rpk globals fields. This command takes a list of key=value pairs to write to the global config section of rpk.yaml.

rpk profile use

Switch to a different rpk profile, making it the active profile for subsequent rpk commands.

rpk profile validate

Validate profile configuration and detect common issues.

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.