rpk profile
Manage rpk profiles.
An rpk profile talks to a single Redpanda cluster. You can create multiple
profiles for multiple clusters and swap between them with rpk profile use.
Multiple profiles may be useful if, for example, you use rpk to talk to
a localhost cluster, a dev cluster, and a prod cluster, and you want to keep
your configuration in one place.
You can also use the RPK_PROFILE environment variable to temporarily override
the current profile without modifying your configuration. The --profile flag
takes precedence over the environment variable if both are set.
Subcommands
| Command | Description |
|---|---|
Clear the current profile. This command clears the current profile, which can be useful to unset a production cluster profile. |
|
Create a new |
|
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. |
|
Delete an rpk profile. Deleting a profile removes it from the |
|
Edit an rpk profile. This command opens your default editor to edit the specified profile, or the current profile if no profile is specified. |
|
Edit |
|
List |
|
Print |
|
Print |
|
Prompt a profile name formatted for a PS1 prompt. This command prints ANSI-escaped text per your current profile’s |
|
Rename the current |
|
Set fields in the current |
|
Set |
|
Switch to a different |
|
Validate profile configuration and detect common issues. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |