rpk profile set

Set fields in the current rpk profile.

As in the create command, this command takes a list of key=value pairs to write to the current profile.

The key can either be the name of a -X flag or the path to the field in the profile’s yaml format. For example, using

--set tls.enabled=true or

--set kafka_api.tls.enabled=true

is equivalent. The former corresponds to the -X flag tls.enabled, while the latter corresponds to the path kafka_api.tls.enabled in the profile’s yaml.

This command supports autocompletion of valid keys, suggesting the -X key format. If you begin writing a YAML path, this command will suggest the rest of the path.

You can also use the format set key value if you intend to only set one key.


rpk profile set [KEY=VALUE]+ [flags]


Value Type Description

-h, --help


Help for set.



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

-X, --config-opt


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



Profile to use. See rpk profile for more details.

-v, --verbose


Enable verbose logging.