# ed config set

> Validates a value against the setting's type and allowed list, writes it, and tells the running app.

- Canonical URL: https://getedith.pro/docs/cli/config/set
- Updated: 2026-12-02

Validates a value against the setting's type and allowed list, writes it, and
tells the running app.

```
ed config set <key> <value> [--json]
```

| Argument | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `key` | a catalogue key | required | The setting to write |
| `value` | text, parsed by the setting's type | required | The new value |

| Option | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | `false` | Emit JSON on stdout |

How the text is parsed depends on the type:

| Type | Accepted text | Refused |
| --- | --- | --- |
| `bool` | `true`, `false`, `yes`, `no`, `on`, `off`, `1`, `0`, `enabled`, `disabled`, in any case | anything else, `is not a boolean, use true or false` |
| `int` | a whole number, surrounding spaces trimmed | `abc is not a whole number` |
| `number` | a decimal number, surrounding spaces trimmed | `abc is not a number` |
| `string` | the text verbatim, and when the setting has an allowed list, one of those values exactly | a value outside the list, with the list as the hint |
| `csv` | the text verbatim, stored as one string | the same allowed-list check, though no `csv` setting declares one |
| `stringList` | comma separated, each item trimmed, empty text gives an empty list | nothing |
| `map` | nothing | always, `map settings cannot be set from the command line` |

The human output is the key and the value the store now holds. `--json` adds
what was there before, which is the fallback when the setting had never been
written:

```json
{
  "key": "creditHidden",
  "previous": false,
  "value": true
}
```

```
ed extensions enable keepAwake
ed config set preventSleep true
ed config set warnPercent 70
ed config set limitsProvider codex
ed config set cleanerSelectedDrives /,/Volumes/Data
```

This checks and stores the value the same way the Settings window does, and a
running Edith picks the change up at once.

Validation happens before the write, so a rejected value leaves the stored value
alone and exits 1. The 23 read-only keys are refused the same way, also exit 1,
before anything is touched:

```
$ ed config set appearance bogus
error: bogus is not a valid value
hint: allowed: system, light, dark

$ ed config set micMuted true
error: micMuted is read only
```

So `ed config set presenterMode true` blurs the numbers in the open window the same
way the menu bar toggle does.

## Where to go next

- [`ed config`](https://getedith.pro/docs/cli/config), the rest of this group
- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
