gws-calendar-insert
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesecalendar +insert
calendar +insert
PREREQUISITE: Readfor auth, global flags, and security rules. If missing, run../gws-shared/SKILL.mdto create it.gws generate-skills
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
标志参数
| Flag | Required | Default | Description |
|---|---|---|---|
| — | primary | Calendar ID (default: primary) |
| ✓ | — | Event summary/title |
| ✓ | — | Start time (ISO 8601, e.g., 2024-01-01T10:00:00Z) |
| ✓ | — | End time (ISO 8601) |
| — | — | Event location |
| — | — | Event description/body |
| — | — | Attendee email (can be used multiple times) |
| 标志 | 是否必填 | 默认值 | 描述 |
|---|---|---|---|
| — | primary | 日历ID(默认值:primary) |
| ✓ | — | 活动摘要/标题 |
| ✓ | — | 开始时间(ISO 8601格式,例如:2024-01-01T10:00:00Z) |
| ✓ | — | 结束时间(ISO 8601格式) |
| — | — | 活动地点 |
| — | — | 活动描述/正文 |
| — | — | 参会者邮箱(可多次使用) |
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.combash
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.comTips
提示
- 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 —— 所有日历和活动管理命令