| name | ical |
| description | Manages macOS Calendar events and calendars from the terminal using the ical CLI. Full CRUD for both events and calendars. Supports natural language dates, recurrence rules, alerts, interactive mode, import/export (JSON/CSV/ICS), and multiple output formats. Use when the user wants to interact with Apple Calendar via command line, automate calendar workflows, or build scripts around macOS Calendar. |
| metadata | {"author":"BRO3886","version":"0.7.0"} |
| compatibility | Requires macOS with Calendar.app. Requires Xcode Command Line Tools for building from source. |
ical — CLI for macOS Calendar
A Go CLI that wraps macOS Calendar. Sub-millisecond reads via cgo + EventKit. Single binary, no dependencies at runtime.
Installation
go install github.com/BRO3886/ical/cmd/ical@latest
Or build from source:
git clone https://github.com/BRO3886/ical && cd ical
make build
Quick Start
ical calendars
ical calendars create "Projects" --source iCloud --color "#FF6961"
ical today
ical list --from today --to "end of week"
ical add "Team standup" --start "tomorrow at 9am" --end "tomorrow at 9:30am" --calendar Work --alert 15m
ical show 2
ical delete 2 --force
ical search "meeting" --from "30 days ago" --to "next month"
ical export --format ics --from today --to "in 30 days" --output-file events.ics
Command Reference
Event CRUD
| Command | Aliases | Description |
|---|
ical add | create, new | Create an event |
ical show | get, info | Show full event details |
ical update | edit | Update event properties |
ical delete | rm, remove | Delete an event |
Event Views
| Command | Aliases | Description |
|---|
ical list | ls, events | List events in a date range |
ical today | — | Show today's events |
ical upcoming | next, soon | Show events in the next N days |
Search & Export
| Command | Aliases | Description |
|---|
ical search | find | Search events by title, location, notes |
ical export | — | Export events to JSON, CSV, or ICS |
ical import | — | Import events from JSON or CSV file |
Calendar Management
| Command | Aliases | Description |
|---|
ical calendars | icals | List all calendars |
ical calendars create | add, new | Create a new calendar |
ical calendars update | edit, rename | Update a calendar (rename, recolor) |
ical calendars delete | rm, remove | Delete a calendar and all its events |
Skills & Other
| Command | Aliases | Description |
|---|
ical skills install | — | Install ical agent skill for Claude Code / Codex |
ical skills uninstall | — | Remove ical agent skill |
ical skills status | — | Show skill installation status |
ical version | — | Print version and build info |
ical completion | — | Generate shell completions (bash/zsh/fish) |
For full flag details on every command, see references/commands.md.
Key Concepts
Row Numbers
Event listings display row numbers (#1, #2, #3...) alongside events. These are cached to ~/.ical-last-list so you can reference them in subsequent commands:
ical list --from today --to "next week"
ical show 2
ical update 3 --title "New title"
ical delete 1 --force
ical delete 1
Row numbers reset each time you run a list/today/upcoming command. With no arguments, show, update, and delete launch an interactive picker instead.
Event ID flag (for scripts and agents)
When you have a full event ID (from -o json output), use --id for exact lookup with no prefix matching:
EVENT_ID=$(ical today -o json | jq -r '.[0].id')
ical show --id "$EVENT_ID"
ical update --id "$EVENT_ID" --title "New title"
ical delete --id "$EVENT_ID" --force
Important for scripting:
ical delete prompts for interactive confirmation by default. Always pass --force (or -f) when running non-interactively. There is no --confirm flag.
ical update does not require confirmation and has no --force flag — just run it directly with the flags you want to change.
--id and a positional argument are mutually exclusive — passing both returns an error.
Natural Language Dates
Date flags (--from, --to, --start, --end, --due) accept natural language:
ical list --from today --to "next friday"
ical add "Lunch" --start "tomorrow at noon" --end "tomorrow at 1pm"
ical search "standup" --from "2 weeks ago"
ical upcoming --days 14
Supported patterns: today, tomorrow, next monday, in 3 hours, eod, eow, this week, 5pm, mar 15, 2 days ago, and more. See references/dates.md for the full list.
Interactive Mode
The add and update commands support -i for guided form-based input:
ical add -i
ical update 2 -i
The show, update, and delete commands accept 0 arguments to launch an interactive event picker:
ical show
ical delete
Output Formats
All read commands support -o / --output:
- table (default) — formatted table with borders and color
- json — machine-readable JSON (ISO 8601 dates)
- plain — simple text, one item per line
The NO_COLOR environment variable and --no-color flag are respected.
Recurrence
Events can repeat with flexible rules:
ical add "Standup" --start "tomorrow at 9am" --repeat daily
ical add "Team sync" --start "next monday at 10am" --repeat weekly --repeat-interval 2 --repeat-days mon,wed
ical add "Review" --start "mar 1 at 2pm" --repeat monthly --repeat-count 6
ical add "Anniversary" --start "jun 15" --repeat yearly --repeat-until "2030-06-15"
Use --repeat none on update to remove recurrence. Use --span future to update/delete this and all future occurrences.
Alerts
Add reminders before an event with the --alert flag (repeatable):
ical add "Meeting" --start "tomorrow at 2pm" --alert 15m
ical add "Flight" --start "mar 15 at 8am" --alert 1h --alert 1d
Supported units: m (minutes), h (hours), d (days).
Common Workflows
Daily review
ical today
ical upcoming --days 1
ical list --from today --to "end of week"
Weekly planning
ical upcoming --days 7
ical add "Planning" --start "monday at 9am" -i
Scripting with JSON output
ical today -o json | jq 'length'
ical upcoming -o json | jq -r '.[].title'
ical list --from today --to "in 30 days" --calendar Work -o json | jq '.[].title'
ical calendars -o json | jq -r '.[].title'
ical calendars -o json | jq -r '.[] | "\(.id) \(.title)"'
Calendar JSON fields: id, title, type, color, source, readOnly
Event JSON fields: id, title, start_date, end_date, calendar, calendar_id, location, notes, url, all_day, recurrence, alerts
Backup and restore
ical export --from "12 months ago" --to "in 12 months" --format json --output-file backup.json
ical export --from today --to "in 6 months" --format ics --output-file events.ics
ical import backup.json --calendar "Restored"
Public Go API
For programmatic access to macOS Calendar, use go-eventkit directly:
import "github.com/BRO3886/go-eventkit/calendar"
client, _ := calendar.New()
events, _ := client.Events(from, to, calendar.WithCalendarName("Work"))
event, _ := client.CreateEvent(calendar.CreateEventInput{
Title: "Team Meeting",
StartDate: start,
EndDate: end,
CalendarName: "Work",
})
See go-eventkit docs for the full API surface.
Limitations
- macOS only — requires EventKit framework via cgo
- No attendee management — attendees and organizer are read-only (Apple limitation)
- Subscribed/birthday calendars are read-only — cannot create events on these
- Event IDs are calendar-scoped — the UUID prefix before
: is the calendar ID, not event-specific. Use row numbers or the interactive picker instead of raw IDs