← 返回命令列表

Linux command

gcalcli 命令

趣味

复制后可按需替换文件名、目录或参数。

常用示例

Show agenda

gcalcli agenda

List calendars

gcalcli list

Show weekly calendar view

gcalcli calw

Show monthly calendar view

gcalcli calm

Add event

gcalcli add --title "[title]" --when "[tomorrow 2pm]" --duration [60] --where "[location]"

Quick add event

gcalcli quick "[Meeting tomorrow at 3pm]"

Search events

gcalcli search "[query]"

Import events

gcalcli import [path/to/events.ics]

Delete event

gcalcli delete "[event title]"

说明

gcalcli is a command-line interface for Google Calendar that enables terminal-based calendar management without opening a web browser. It authenticates via OAuth 2.0 and provides full access to your Google Calendar data. The tool supports both viewing operations like agenda and calendar displays, and modification operations including creating, editing, and deleting events. Quick add functionality allows natural language event creation, while the structured add command provides precise control over event details. gcalcli is particularly useful for terminal-centric workflows, automation scripts, and integration with other command-line tools. It can display calendar data in various formats and supports working with multiple calendars simultaneously.

参数

--calendar _name_
Specify calendar.
--title _text_
Event title.
--when _time_
Event start time.
--duration _minutes_
Event duration.
--where _location_
Event location.
--lineart _type_
Line art style: fancy, unicode, or ascii.
--nocache
Execute command without using cache.
--locale _LOCALE_
Set locale for date/time output.
--refresh
Delete and refresh cached data.

FAQ

What is the gcalcli command used for?

gcalcli is a command-line interface for Google Calendar that enables terminal-based calendar management without opening a web browser. It authenticates via OAuth 2.0 and provides full access to your Google Calendar data. The tool supports both viewing operations like agenda and calendar displays, and modification operations including creating, editing, and deleting events. Quick add functionality allows natural language event creation, while the structured add command provides precise control over event details. gcalcli is particularly useful for terminal-centric workflows, automation scripts, and integration with other command-line tools. It can display calendar data in various formats and supports working with multiple calendars simultaneously.

How do I run a basic gcalcli example?

Run `gcalcli agenda` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --calendar _name_ do in gcalcli?

Specify calendar.