# ed lid-awake on

> Previews a Lid Awake session. With --yes, it starts the session and waits until macOS sleep state was changed. start is an alias.

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

Previews a Lid Awake session. With `--yes`, it starts the session and waits
until macOS sleep state was changed. `start` is an alias.

```
ed lid-awake on [--for <duration> | --until-lid-reopens] [--yes] [--json]
```

| Option | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--for` | `15m`, `30m`, `1h`, `2h`, or an accepted long spelling | none | Stop automatically after the selected preset. |
| `--until-lid-reopens` | flag | off | Stop after the lid has closed and then opens again. |
| `--yes` | flag | off | Apply the previewed power-state change. |
| `--json` | flag | off | Emit the preview or full resulting state object. |

Without a session option the command selects `indefinite`. Accepted duration
spellings are case-insensitive and ignore spaces:

| Session | Accepted values |
| --- | --- |
| 15 minutes | `15m`, `15min`, `15mins`, `15minute`, `15minutes`, `fifteenminutes` |
| 30 minutes | `30m`, `30min`, `30mins`, `30minute`, `30minutes`, `thirtyminutes` |
| 1 hour | `1h`, `60m`, `60min`, `60mins`, `1hour`, `onehour` |
| 2 hours | `2h`, `120m`, `120min`, `120mins`, `2hours`, `twohours` |

`--for` and `--until-lid-reopens` together are refused with exit 1. An unknown
duration also exits 1 and hints `use 15m, 30m, 1h or 2h`.

```
ed lid-awake on
ed lid-awake start --for 30min --yes
ed lid-awake on --until-lid-reopens --yes
ed lid-awake on --for 1h --yes --json
```

Without `--yes`, the command prints the selected session, the heat and power
warning, and `pass --yes to apply`. It exits 0 without requiring the menu bar
app, enabling the extension, or posting a runtime request. With `--json`, that
preview has stable `operation`, `performed`, `requiresConfirmation`, `summary`,
`warning`, `session`, and `restoreOnQuit` fields. The last field is `null` for
this operation.

With `--yes`, starting enables the `lidAwake` extension when needed, waits
as long as 120 seconds for the engine, and exits 0 only after the privileged
helper has applied the change. The human answer is the selected session, for
example `lid awake on: 30 minutes`. JSON is the full state object documented by
[`status`](https://getedith.pro/docs/cli/lid-awake/status).

On first use, macOS may require approval for Edith's background helper. The
command opens Login Items settings and exits 1 with the approval instruction.
Approve the Edith item that affects all users, then run the command again. A
missing helper instead asks you to reinstall Edith. There is no password prompt
or direct unprivileged fallback.

## 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), inspect the live result
- [`ed lid-awake off`](https://getedith.pro/docs/cli/lid-awake/off), end the session
- [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
