Google Calendar Command Line Interface
Command line based application running in node.js that allows access to Google Calendar API. This application basically uses the official Google's node.js client library. Supports authorization and authentication with OAuth 2.0.
Still in a early stage, issues or PRs with desired functionality or fixes are appreciated.
Authorizing
-
Before running the app for the first time: You may need CLIENT_ID, CLIENT_SECRET and REDIRECT_URL. This information can be found going to the Developer Console, clicking your project --> APIs & auth --> credentials. Download the JSON file from the Developer Console to your working directory and rename it client_secret.json.
-
Running the app for the first time: It will prompt you to authorize access, follow the instructions.
Installation
Just clone it in your machine or install it globaly using npm.
$ npm install cli-gcal -g
Usage
Type 'help' to get a list of commands
List events
list [-i] [-m < max results >] [-d < date >]
Date format: YYYYYMM (Specified year and month), YYYY (The whole year) or MM or M (Current Year and specified month).
Insert events
insert < YYYYMMDD > [< start time: hhmm >] [< duration in minutes >]
Default: current date, all-day-event
Delete event
delete < event id >
Remove token stored in the file system
removeToken
References