Command reference
ed permissions request
Ask the running app to raise the macOS prompt for one permission, wait for it, then report the mirror. This is the button on a row of the Permissions pane.
ed permissions request <permission> [--json]Arguments
| Name | Type / values | Default | What it does |
|---|---|---|---|
<permission> |
one of calendar, notifications, accessibility, inputMonitoring, fullDisk, screenRecording, applicationAudio, camera, bluetooth, automation |
required | The permission to ask for. Matched case-insensitively, so INPUTMONITORING resolves the same as inputMonitoring |
Options
| Name | Type / values | Default | What it does |
|---|---|---|---|
--json |
flag | off | Emit JSON on stdout |
--json shape
{ "granted": false, "permission": "calendar", "relaunch": "none", "relaunchRequired": false, "requested": true}permission is the id you asked for, normalised to the catalogue's spelling.
granted is the mirror re-read after the wait, not a promise that the prompt
was answered. relaunch is either none or edith. relaunchRequired becomes
true only when the grant landed and its policy requires a fresh Edith process.
Examples
ed permissions request calendared permissions request screenRecording --jsoned permissions request notifications && ed app relaunch --yesBehaviour
The three checks run in this order, and the first one that fails is the one you see:
- the id is looked up, and an unknown one exits 3 listing all ten,
applicationAudio,bluetoothandautomationare refused, because they have no prompt to raise, and exit 4,- Edith raises the prompt. You do not need to open Edith first:
edstarts it in the background when needed.
Refusals and unknown names say what to do instead:
$ ed permissions request bluetootherror: Bluetooth is granted on first use and cannot be requestedhint: macOS will ask for Bluetooth access when connection alerts first run.$ ed permissions request wifierror: no permission named wifihint: known: calendar, notifications, accessibility, inputMonitoring, fullDisk, screenRecording, applicationAudio, camera, bluetooth, automationPast those checks the command posts the permission's grant notification, sleeps 1500 ms, posts a refresh, sleeps another 1000 ms, and reads the mirror. So it takes at least two and a half seconds, and it is a fixed wait rather than a reply it can wait on. The app's side of that notification opens the matching System Settings pane on your screen, which is a visible side effect of a command you may have run over SSH.
A grant that has not landed inside those two and a half seconds is the normal
outcome for anything you have to toggle in System Settings by hand. The command
reports it and still exits 0, so gate on the granted field rather than on the
exit code:
$ ed permissions request calendarcalendar not granted yetnote: finish the prompt in System Settings, then run `ed permissions refresh`Accessibility, Input Monitoring, Full Disk Access and Screen Recording can need
a fresh process. The command reports that policy but never relaunches Edith by
itself. Run ed app relaunch --yes explicitly after a successful request when
relaunchRequired is true.
Where to go next
ed permissions, the rest of this group- All
edcommands