---
title: rpk registry mode set
latest-redpanda-tag: v24.3.9
latest-console-tag: v3.14.0
latest-operator-version: v2.3.8-24.3.6
# EOL = End-of-Life (support lifecycle status)
page-is-nearing-eol: "false"
page-is-past-eol: "true"
page-eol-date: December 3, 2025
latest-connect-version: 4.118.0
docname: rpk/rpk-registry/rpk-registry-mode-set
page-component-name: streaming
page-version: "24.3"
page-component-version: "24.3"
page-component-title: Streaming
page-relative-src-path: rpk/rpk-registry/rpk-registry-mode-set.adoc
page-edit-url: https://github.com/redpanda-data/docs/edit/v/24.3/modules/reference/pages/rpk/rpk-registry/rpk-registry-mode-set.adoc
page-git-created-date: "2024-08-08"
page-git-modified-date: "2024-08-12"
page-generated-content: none
support-status: past end-of-life
---

# rpk registry mode 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)

<!-- Source: https://docs.redpanda.com/streaming/24.3/reference/rpk/rpk-registry/rpk-registry-mode-set.md -->

Set the mode Schema Registry runs in.

Running this command with no subject sets the global mode for Schema Registry. Alternatively, use the `--global` flag to set the global mode for Schema Registry at the same time as per-subject modes.

Acceptable mode values:

-   `READONLY`

-   `READWRITE`


## Usage

```bash
rpk registry mode set [SUBJECT...] [flags]
```

## Flags

| **Value** | **Type** | **Description** |
| --- | --- | --- |
| `--global` | - | Set the global schema registry mode in addition to subject modes. |
| `-h, --help` | - | Help for set. |
| `--mode` | string | Schema registry mode to set. Acceptable values: `READONLY`, `READWRITE` (case insensitive). |
| `--format` | string | Output format: `json`,`yaml`,`text`,`wide`,`help`. Default: `text`. |
| `--config` | string | Redpanda or `rpk` config file; default search paths are `~/.config/rpk/rpk.yaml`, `$PWD`, and `/etc/redpanda/redpanda.yaml`. |
| `-X, --config-opt` | stringArray | Override `rpk` configuration settings. See [`rpk -X`](https://docs.redpanda.com/streaming/24.3/reference/rpk/rpk-x-options/) or execute `rpk -X help` for inline detail or `rpk -X list` for terser detail. |
| `--profile` | string | Profile to use. See [`rpk profile`](https://docs.redpanda.com/streaming/24.3/reference/rpk/rpk-profile/rpk-profile/) for more details. |
| `-v, --verbose` | - | Enable verbose logging. |

## Examples

Set the global schema registry mode to `READONLY`:

```bash
rpk registry mode set --mode READONLY
```

Set the schema registry mode to `READWRITE` in subjects `<subject-1>` and `<subject-2>`:

```bash
rpk registry mode set <subject-1> <subject-2> --mode READWRITE
```

> 📝 **NOTE**
>
> Replace the placeholder values.