App::gcal - Command Line Interface interface to Google Calendar.
version 1.121460
gcal --help gcal [events.ical, 'tomorrow at noon. Lunch with Bob', ...] gcal --username="bill" --password="1234" [events.ical, 'tomorrow at noon. Lunch with Bob', ...]
The gcal command provides a quick and easy interface to Google Calendar from the command line.
gcal
Before using the gcal command, you need to provide your Google credentials. The most convenient way to do this is by using your ~.netrc file and supplying credentials for the google.com machine. For example:
~.netrc
google.com
machine google.com login bill password 1234
NOTE: On Windows, your .netrc file is at %HOME%.netrc.
.netrc
%HOME%.netrc
NOTE 2: On Unix, ensure your ~.netrc file has the permissions set to 600.
Alternatively, you can pass the username and password as a parameter to gcal, as follows:
gcal --username="bill" --password="1234"
You can then pass one or more .ics files to the gcal command and it will be added to your Google Calendar.
.ics
You can also pass one or more strings to the gcal command, which will attempt to parse it and create a new event. It uses ICal::QuickAdd to parse, so has the same functionality and limitations.
If you are using Google's two factor authentication (and you really should be), you will need to generate a new application-specific password for gcal. Save that in your .netrc file and use gcal as normal.
Andrew Jones <andrew@arjones.co.uk>
This software is copyright (c) 2012 by Andrew Jones.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::gcal, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::gcal
CPAN shell
perl -MCPAN -e shell install App::gcal
For more information on module installation, please visit the detailed CPAN module installation guide.