Skip to content

CLI Lid Awake On

pukbot[bot] edited this page Aug 26, 2026 · 2 revisions

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.

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, the menu bar app must be running, otherwise this exits 4 before posting a request. 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.

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

CLI reference

Getting Started
Config
App
Extensions
Permissions
Usage
System
Music
Calendar
Clipboard
Color
Download
Apps
Tools
Shelf
Cleaner
Machines
Machines Remote
Machines Docker
Machines Files
Machines Power
Machines Workspace
Attention
Companion
Herdr
Lid Awake
Machines Terminal
Machines Thermal

Guides

Clone this wiki locally