# ed lid-awake restore-on-quit

> Chooses whether the menu bar app restores normal lid-close sleep when its Lid Awake engine shuts down.

- Canonical URL: https://getedith.pro/docs/cli/lid-awake/restore-on-quit
- Updated: 2026-12-02

Chooses whether the menu bar app restores normal lid-close sleep when its Lid
Awake engine shuts down.

```
ed lid-awake restore-on-quit <enabled> [--yes] [--json]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<enabled>` | boolean | required | Turn restoration on or off. |
| `--yes` | flag | off | Apply disabling restoration after previewing it. |
| `--json` | flag | off | Emit the preview or stored boolean as JSON. |

Boolean spellings are case-insensitive: `true`, `yes`, `on`, `1` and `enabled`
turn it on; `false`, `no`, `off`, `0` and `disabled` turn it off. Other text
exits 1 without changing the stored value.

```
ed lid-awake restore-on-quit true
ed lid-awake restore-on-quit off
ed lid-awake restore-on-quit false --yes --json
```

Turning restoration on applies immediately. Turning it off without `--yes`
previews the safety impact and does not write the preference. Its JSON preview
uses the same stable fields as `lid-awake on`, with `restoreOnQuit: false` and
`session: null`. Pass `--yes` to store the change.

Applied human output is `restore on quit = on` or `restore on quit = off`. JSON
contains only the stored boolean:

```json
{
  "restoreOnQuit": true
}
```

This is a preference write, and a running Edith picks it up at once. It does not change the current system
state. Closing the window with `ed app quit --yes` leaves Edith and Lid Awake running,
so it does not trigger this policy. Quitting Edith completely, or removing Lid
Awake, does.

## Where to go next

- [`ed lid-awake`](https://getedith.pro/docs/cli/lid-awake), the rest of this group
- [`ed lid-awake status`](https://getedith.pro/docs/cli/lid-awake/status), see the current policy
- [`ed config get lidAwakeRestoreOnQuit`](https://getedith.pro/docs/cli/config/get), read the same preference
- [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
