Command reference
ed calendar ls
Prints events in a bounded date window shared with the Calendar UI.
ed calendar ls [--days <n>] [--json]Options
| Name | Type / values | Default | What it does |
|---|---|---|---|
--days <n> |
integer from 0 through 120 | 7 |
Read from midnight today through this many days. Zero ends at the moment the command starts. |
--json |
flag | off | Emit JSON on stdout. Long form only; there is no -j. |
--help is generated by the parser, prints the usage summary on stdout and
exits 0.
--json shape
A top level array, one object per event, in the same order the table prints
them. Object keys are sorted, so allDay comes first and title last. null
appears rather than a missing key, so the shape is stable across runs.
[ { "allDay": true, "calendar": "Personal", "end": "2026-08-09T00:00:00Z", "location": null, "meetingURL": null, "start": "2026-08-08T00:00:00Z", "title": "Sarah's birthday" }, { "allDay": false, "calendar": "Work", "end": "2026-08-08T11:30:00Z", "location": "https://meet.google.com/abc-defg-hij", "meetingURL": "https://meet.google.com/abc-defg-hij", "start": "2026-08-08T11:00:00Z", "title": "Standup" }]| Key | Type | What it is |
|---|---|---|
allDay |
boolean | The event's all-day flag |
calendar |
string | The name of the calendar the event came from, "" when EventKit does not give one |
end |
string | End instant, ISO 8601 in UTC, for example 2026-08-08T11:30:00Z |
location |
string or null | The event's location field, verbatim, null when it has none |
meetingURL |
string or null | A detected video call link, null when none was found |
start |
string | Start instant, ISO 8601 in UTC |
title |
string | The event title, or Untitled when the event has none |
No events is an empty array, [], and still exits 0.
Examples
ed calendar lsed calendar ls --days 1ed calendar ls --days 14 --jsoned calendar ls --days 120 --jsoned calendar ls --json | jq -r '.[] | select(.meetingURL) | .meetingURL'Output
The table is four columns. WHEN is all day for an all-day event and
EEE d MMM HH:mm in your own time zone and locale for everything else. LINK
is the detected meeting URL, blank when there is none.
$ ed calendar ls --days 2WHEN TITLE CALENDAR LINKall day Sarah's birthday PersonalSat 8 Aug 11:00 Standup Work https://meet.google.com/abc-defg-hijSat 8 Aug 16:30 Dentist PersonalSun 9 Aug 09:00 Design review Work https://zoom.us/j/98213374412location is in --json only; the table has no column for it. With nothing to
show the header row is printed on its own:
$ ed calendar lsWHEN TITLE CALENDAR LINKBehaviour
Nothing is written. ls sends a typed date window to the app, which reads
EventKit for that request. The UI and CLI share the same 120-day bound, sorting
and deduplication. A CLI read does not widen or replace the UI's current page.
You do not need to open Edith first: ed starts it in the background when
needed. Edith answers with the events, or with a refusal that says what to fix:
$ ed calendar lserror: the Calendar extension is offhint: run `ed extensions enable calendar`$ ed calendar lserror: macOS has not granted Edith calendar accesshint: run `ed permissions request calendar`Both exit 4. The second one is what you get when the grant is missing, denied,
or write-only: Edith answers only with full calendar access. If macOS refuses
the read itself, the error is macOS did not let Edith read the calendar; run
the command again, and reopen Edith if it keeps failing.
--days is checked before anything is posted, so a bad value costs no round
trip. You have to write --days=-1 to reach the negative-value check because
--days -1 is parsed as a missing value.
$ ed calendar ls --days=-1error: --days cannot be negativehint: pass 0 or moreValues above the shared maximum also exit 2:
$ ed calendar ls --days 121error: --days must be between 0 and 120Where to go next
ed calendar, the rest of this group- All
edcommands