Command-line utility for printing events and tasks from the macOS calendar database. More information: https://hasseg.org/icalBuddy/.
icalBuddy --includeOnlyEventsFromNowOn eventsToday
icalBuddy uncompletedTasks
icalBuddy --formatOutput --separateByCalendar eventsToday
icalBuddy --includeOnlyEventsFromNowOn "tasksDueBefore:today+number_of_days"
icalBuddy eventsFrom:start_date to:end_date