man(1)
π NAME π
okay bestie, gather round: gcalcli β the way she lets you interact with a Google Calendar β¨ straight from your terminal like the main character you are.
π¦ SYNOPSIS π¦
gcalcli [options] command [command args or options]
πΈ DESCRIPTION πΈ
so like, gcalcli is a Python application that lets you get into your Google Calendar(s) from the command line, no browser tab chaos required π
. It's easy to:
- get your agenda
- search for events
- add new events
- delete events
- edit events
- and even import those annoying ICS/vCal invites from Microsoft Exchange and/or other sources π
plus, gcalcli can be used as a reminder service and execute any application you want when an event is coming up π₯. it's giving personal assistant, no cap.
β¨ USAGE β¨
usage: gcalcli [-h] [--version] [--client-id CLIENT_ID]
[--client-secret CLIENT_SECRET] [--noauth_local_server]
[--config-folder CONFIG_FOLDER] [--noincluderc]
[--calendar GLOBAL_CALENDARS]
[--default-calendar DEFAULT_CALENDARS] [--locale LOCALE]
[--refresh] [--nocache] [--conky] [--nocolor]
[--lineart {fancy,unicode,ascii}]
{init,list,search,edit,delete,agenda,agendaupdate,updates,conflicts,calw,calm,quick,add,import,remind,config,util}
...
Google Calendar Command Line Interface π
π configuration π
ngl, gcalcli supports a few other configuration mechanisms in addition to the command-line arguments listed below π
$GCALCLI_CONFIG=~/.config/gcalcliβ Path to user config directory or file.
Note: this path is also used to determine fallback paths to check for cache/oauth files to be migrated into their proper data dir paths.
~/.config/gcalcli/config.tomlβ A toml config file where some general-purpose settings can be configured. Schema:https://raw.githubusercontent.com/insanum/gcalcli/HEAD/data/config-schema.jsongcalclirc @ ~/.config/gcalcli/gcalclircβ A flag file listing additional command-line args to always pass, one per line.
Note: Use this sparingly and prefer other configuration mechanisms where available. This flag file mechanism can be brittle (example: https://github.com/insanum/gcalcli/issues/513).
π§ positional arguments π§
{init,list,search,edit,delete,agenda,agendaupdate,updates,conflicts,calw,calm,quick,add,import,remind,config,util}β Invoking a subcommand with--helpprints subcommand usage.
and here's the whole squad, one by one, no skipping bestie:
initβ initialize authentication, etclistβ list available calendarssearchβ search for events within an optional time periodeditβ edit calendar eventsdeleteβ delete events from the calendaragendaβ get an agenda for a time periodagendaupdateβ update calendar from agenda TSV fileupdatesβ get updates since a datetime for a time period (defaults to through end of current month)conflictsβ find event conflictscalwβ get a week-based agenda in calendar formatcalmβ get a month agenda in calendar formatquickβ quick-add an event to a calendaraddβ add a detailed event to the calendarimportβ import an ics/vcal file to a calendarremindβ execute command if event occurs within<mins>timeconfigβ utility commands to work with configurationutilβ low-level utility commands for introspection, dumping schemas, etc
π options π
-h,--helpβ show this help message and exit--versionβ show program's version number and exit--client-id CLIENT_IDβ APIclient_id(default:None)--client-secret CLIENT_SECRETβ APIclient_secret(default:None)--noauth_local_serverβ Provide instructions for authenticating from a remote system using port forwarding. Note: Previously this option invoked an "Out-Of-Band" variant of the auth flow, but that deprecated mechanism is no longer supported. (default:True)--config-folder CONFIG_FOLDERβ Optional directory used to load config files. Deprecated: prefer$GCALCLI_CONFIG. (default:~/.config/gcalcli)--noincludercβ Whether to include~/.gcalclirc. (default:True)--calendar GLOBAL_CALENDARSβ Which calendars to use, in the format"CalendarName"or"CalendarName#color". Supported here globally for compatibility purposes, but prefer passing to individual commands after the command name since this global version is brittle. (default:[])--default-calendar DEFAULT_CALENDARSβ Optional default calendar to use if no--calendaroptions are given (default:[])--locale LOCALEβ System locale (default: ``)--refreshβ Delete and refresh cached data (default:False)--nocacheβ Execute command without using cache (default:True)--conkyβ Use Conky color codes (default:False)--nocolorβ Enable/Disable all color output (default:True)--lineart {fancy,unicode,ascii}β Choose line art style for calendars:"fancy"for VTcodes,"unicode"for Unicode box drawing characters,"ascii"for old-school plusses, hyphens and pipes. (default:fancy)
π DIAGNOSTICS π
Encoding issues, wrongly printed characters, UnicodeEncodeError when using conky, in pipes or scripts"
- Set an environment variable
PYTHONIOENCODING=utf8 - Use a Unicode capable font like DejaVu Sans Mono
- Set option
--lineart=unicodeor--lineart=ascii
No colors or garbage characters when using inside conky
- Set option
--conky
π SEE ALSO π
iykyk π
π BUG REPORTS π
Report issues at https://github.com/insanum/gcalcli/issues β please actually do it bestie, they wanna know π
π«Ά AUTHORS π«Ά
- Eric Davis (
edavis@insanum.com) - Brian Hartvigsen (
brian.andrew@brianandjenny.com) - Joshua Crowgey (
jcrowgey@uw.edu)
okay and that's the whole page π this was gcalcli, version 4.5.0, dated 28 September 2024, chillin' in the gcalcli Manual under man(1) β slay, periodt, go book something iconic π
β¨
π¦ where this page comes from
- debian trixie: gcalcli 4.5.1-1 Β· MIT
- nixos 26.05: gcalcli 4.5.1
- nixpkgs unstable: gcalcli 4.5.1
- ubuntu questing: gcalcli 4.5.1-1
- ubuntu resolute: gcalcli 4.5.1-1build1 Β· MIT
- ubuntu stonking: gcalcli 4.5.1-1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms