macOS system tools CLI with JSON/YAML output. Zero dependencies.
swift build -c release
cp .build/release/macli /usr/local/bin/macli cal ls # List all calendars
macli cal add --name Work # Create calendar
macli cal rm --name Work # Delete calendarmacli event ls --calendar Work # List events
macli event add --calendar Work --title Meeting \
--start "2024-01-15 10:00" \
--end "2024-01-15 11:00" # Create event
macli event rm --id <event-id> # Delete eventmacli reminder ls # List reminder lists
macli reminder add --name Shopping # Create listmacli notify --title "Alert" --body "Task done"
macli notify --title "Test" --sound # With soundmacli location # Get current coordinatesmacli speak "Hello World" # Speak textmacli speech recognize --file audio.m4a # Transcribe audiomacli smc temp # Temperature sensors (JSON)
macli smc temp --tsv # Temperature sensors (TSV)
macli smc volt # Voltage sensors
macli smc curr # Current sensors
macli smc all # All sensorsSubcommands: temp, volt, curr, power, fans, batt, all
Options: --tsv - Output TSV instead of JSON
macli smc86 temp # Temperature sensors
macli smc86 fans # Fan speeds
macli smc86 batt # Battery status
macli smc86 all # All sensors{
"ok": true,
"source": "HID",
"sensors": [
{"name": "PMU tdie1", "value": 57.5, "unit": "°C"}
],
"count": 45
}name value unit
PMU tdie1 57.5 °C
- Binary: ~580KB
- Compressed (tar.xz): ~136KB
Apache 2.0
For development docs, see DEV.md