# rpk redpanda config set

> For the complete documentation index, see [llms.txt](https://docs.redpanda.com/llms.txt). Component-specific: [streaming-full.txt](https://docs.redpanda.com/streaming-full.txt)

---
title: rpk redpanda config set
latest-redpanda-tag: v26.2.1
latest-console-tag: v3.10.0
latest-operator-version: v26.2.1
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "false"
page-eol-date: July 28, 2027
latest-connect-version: 4.105.0
docname: rpk/rpk-redpanda/rpk-redpanda-config-set
page-component-name: streaming
page-version: "26.2"
page-component-version: "26.2"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-redpanda/rpk-redpanda-config-set.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/main/modules/reference/pages/rpk/rpk-redpanda/rpk-redpanda-config-set.adoc
description: Set node configuration values, such as the list of seed servers or the ports that various APIs listen on. This command modifies the <code>redpanda.yaml</code> you have locally on disk.
page-git-created-date: "2023-05-17"
page-git-modified-date: "2026-08-03"
support-status: supported
---

<!-- Source: https://docs.redpanda.com/streaming/current/reference/rpk/rpk-redpanda/rpk-redpanda-config-set.md -->

Set node configuration values, such as the list of seed servers or the ports that various APIs listen on.

This command modifies the `redpanda.yaml` you have locally on disk. The first argument is the key within the `yaml` representing a property / field that you would like to set. Nested fields can be accessed through a dot:

```bash
rpk redpanda config set redpanda.developer_mode true
```

All values are parsed as `yaml` and, since `yaml` is a superset of json, you can also format your input as `json`. Individual specific fields or full structs can be set:

```bash
rpk redpanda config set rpk.tune_disk_irq true \
rpk redpanda config set redpanda.rpc_server '{address: 3.250.158.1, port: 9092}'
```

You can set an entire array by wrapping all items with braces, or by using one struct:

```bash
rpk redpanda config set redpanda.advertised_kafka_api '[{address: 0.0.0.0, port: 9092}]' \
rpk redpanda config set redpanda.advertised_kafka_api '{address: 0.0.0.0, port: 9092}' # same
```

Indexing can be used to set specific items in an array. You can index one past the end of an array to extend it:

```bash
rpk redpanda config set redpanda.advertised_kafka_api[1] '{address: 0.0.0.0, port: 9092}'
```

You may also use <key>=<value> notation for setting configuration properties:

```bash
rpk redpanda config set redpanda.kafka_api[0].port=9092
```

> 📝 **NOTE**
>
> This command is only available on Linux.

## [](#usage)Usage

```bash
rpk redpanda config set <key> <value> [flags]
```

## [](#global-flags)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. |