--- title: "gcal - A Command Line Interface to Google Calendar" date: 2011-11-27 categories: ["gcal","Google","Google Calendar","Perl"] source: https://andrew-jones.com/blog/gcal-a-command-line-interface-to-google-calendar/ --- # gcal - A Command Line Interface to Google Calendar A couple of weeks ago I published `gcal`, a Command Line Interface to [Google Calendar](http://www.google.com/calendar). It's quite simple. If you have a `.ics` file of events you want to import into your calendar, run the following: gcal events.ical Or, you can create an event using shorthand, like this: gcal 'tomorrow at noon. Lunch with Bob' But first, you need to provide your credentials. Add the following to your `~/.netrc` file: machine google.com login bob password 1234 ## Installing Its written in Perl, so if you already know how to install from CPAN you just need the name, _App::gcal_. If not, and you are on a Mac or Linux system, just do the following to install the script: curl -L http://cpanmin.us | perl - --sudo App::cpanminus cpanm App::gcal If on Windows, you first need to install [perl](http://strawberryperl.com/). Then something like this should work. cpanp -i App::gcal ## More Information For more information, see: * [Code and Issue Tracker on GitHub](https://github.com/andrewrjones/gcal) * [App::gcal on the CPAN](https://metacpan.org/module/App::gcal) Any issues, please let me know.