View Mac Calendar from Command Line

By  on  

As someone that loves using UI tools, I do pride myself in learning how to accomplish the same feats from command line. Don't believe me? Check out my Command Line tutorials section -- I guarantee you'll learn quite a bit.

Recently I learned that you can view basic calendars from command line with the cal command:

~ $ cal
   February 2020
Su Mo Tu We Th Fr Sa
                   1
 2  3  4  5  6  7  8
 9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29

Seeing the calendar is cool but I'd like to see my calendar events for each date. After looking through a number of options, I've found icalBuddy to be the best for displaying Mac Calendar app calendars.

To install icalBuddy, use a utility like Homebrew:

brew install ical-buddy

With icalBuddy installed, you can get today's events with:

icalBuddy -f -sd eventsToday

• Son's basketball game  (David)
    8:30 AM - 10:30 AM
• Friend's birthday party  (David)
    location: Chucky Cheese
    1:00 PM - 3:00 PM

You can get a week at a glance by adding time to eventsToday:

icalBuddy -f -sd eventsToday+10

icalBuddy provides much more functionality but you get the idea. Retrieving daily events from command line can be easy and it's another step toward living your dev life from shell!

Recent Features

  • By
    From Webcam to Animated GIF: the Secret Behind chat.meatspac.es!

    My team mate Edna Piranha is not only an awesome hacker; she's also a fantastic philosopher! Communication and online interactions is a subject that has kept her mind busy for a long time, and it has also resulted in a bunch of interesting experimental projects...

  • By
    Responsive Images: The Ultimate Guide

    Chances are that any Web designers using our Ghostlab browser testing app, which allows seamless testing across all devices simultaneously, will have worked with responsive design in some shape or form. And as today's websites and devices become ever more varied, a plethora of responsive images...

Incredible Demos

  • By
    AJAX For Evil:  Spyjax with jQuery

    Last year I wrote a popular post titled AJAX For Evil: Spyjax when I described a technique called "Spyjax": Spyjax, as I know it, is taking information from the user's computer for your own use — specifically their browsing habits. By using CSS and JavaScript, I...

  • By
    Retrieve Your Gmail Emails Using PHP and IMAP

    Grabbing emails from your Gmail account using PHP is probably easier than you think. Armed with PHP and its IMAP extension, you can retrieve emails from your Gmail account in no time! Just for fun, I'll be using the MooTools Fx.Accordion plugin...

Discussion

    Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!