gccli
Original:🇺🇸 English
Translated
Google Calendar CLI for listing calendars, viewing/creating/updating events, and checking availability.
3installs
Sourcebadlogic/pi-skills
Added on
NPX Install
npx skill4agent add badlogic/pi-skills gccliTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Google Calendar CLI
Command-line interface for Google Calendar operations.
Installation
bash
npm install -g @mariozechner/gccliSetup
Google Cloud Console (one-time)
- Create a new project (or select existing)
- Enable the Google Calendar API
- Set app name in OAuth branding
- Add test users (all Gmail addresses you want to use)
- Create OAuth client:
- Click "Create Client"
- Application type: "Desktop app"
- Download the JSON file
Configure gccli
First check if already configured:
bash
gccli accounts listIf no accounts, guide the user through setup:
- Ask if they have a Google Cloud project with Calendar API enabled
- If not, walk them through the Google Cloud Console steps above
- Have them download the OAuth credentials JSON
- Run:
gccli accounts credentials ~/path/to/credentials.json - Run: (use
gccli accounts add <email>for browserless OAuth)--manual
Usage
Run for full command reference.
gccli --helpCommon operations:
- - List all calendars
gccli <email> calendars - - List events
gccli <email> events <calendarId> [--from <dt>] [--to <dt>] - - Get event details
gccli <email> event <calendarId> <eventId> - - Create event
gccli <email> create <calendarId> --summary <s> --start <dt> --end <dt> - - Check availability
gccli <email> freebusy <calendarIds> --from <dt> --to <dt>
Use as calendarId for the main calendar.
primaryDate/Time Format
- Timed events: (UTC) or
YYYY-MM-DDTHH:MM:SSZ(local)YYYY-MM-DDTHH:MM:SS - All-day events: with
YYYY-MM-DDflag--all-day
Data Storage
- - OAuth client credentials
~/.gccli/credentials.json - - Account tokens
~/.gccli/accounts.json