rpk cluster config set
Set a single cluster configuration property.
This command is provided for use in scripts. For interactive editing, or bulk
changes, use the edit
and import
commands respectively.
You may also use <key>=<value>
notation for setting configuration properties:
rpk cluster config set log_retention_ms=-1
If an empty string is given as the value, the property is reset to its default.
Flags
Value | Type | Description |
---|---|---|
|
- |
Help for set. |
|
- |
Include all properties, including tunables. |
|
string |
Redpanda or rpk config file; default search paths are |
|
stringArray |
Override |
|
string |
Profile to use. See |
|
- |
Enable verbose logging. |
Setting properties to non-number values (such as setting string values with
Workaround: Use
|