gws-calendar-insert

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

calendar +insert

calendar +insert

PREREQUISITE: Read
../gws-shared/SKILL.md
for auth, global flags, and security rules. If missing, run
gws generate-skills
to create it.
create a new event
前提条件: 阅读
../gws-shared/SKILL.md
了解认证、全局标志和安全规则。如果该文件缺失,请运行
gws generate-skills
来创建它。
创建新活动

Usage

使用方法

bash
gws calendar +insert --summary <TEXT> --start <TIME> --end <TIME>
bash
gws calendar +insert --summary <TEXT> --start <TIME> --end <TIME>

Flags

标志参数

FlagRequiredDefaultDescription
--calendar
primaryCalendar ID (default: primary)
--summary
Event summary/title
--start
Start time (ISO 8601, e.g., 2024-01-01T10:00:00Z)
--end
End time (ISO 8601)
--location
Event location
--description
Event description/body
--attendee
Attendee email (can be used multiple times)
标志是否必填默认值描述
--calendar
primary日历ID(默认值:primary)
--summary
活动摘要/标题
--start
开始时间(ISO 8601格式,例如:2024-01-01T10:00:00Z)
--end
结束时间(ISO 8601格式)
--location
活动地点
--description
活动描述/正文
--attendee
参会者邮箱(可多次使用)

Examples

示例

bash
gws calendar +insert --summary 'Standup' --start '2026-06-17T09:00:00-07:00' --end '2026-06-17T09:30:00-07:00'
gws calendar +insert --summary 'Review' --start ... --end ... --attendee alice@example.com
bash
gws calendar +insert --summary 'Standup' --start '2026-06-17T09:00:00-07:00' --end '2026-06-17T09:30:00-07:00'
gws calendar +insert --summary 'Review' --start ... --end ... --attendee alice@example.com

Tips

提示

  • Use RFC3339 format for times (e.g. 2026-06-17T09:00:00-07:00).
  • For recurring events or conference links, use the raw API instead.
[!CAUTION] This is a write command — confirm with the user before executing.
  • 时间请使用RFC3339格式(例如 2026-06-17T09:00:00-07:00)。
  • 对于重复活动或会议链接,请直接使用原始API。
[!CAUTION] 这是一个写入命令 —— 执行前请与用户确认。

See Also

另请参阅

  • gws-shared — Global flags and auth
  • gws-calendar — All manage calendars and events commands
  • gws-shared —— 全局标志和认证
  • gws-calendar —— 所有日历和活动管理命令