---
title: "Gog"
source: "https://clawhub.ai/steipete/gog"
author:
published:
created: 2026-05-04
description: "Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs."
tags:
  - "clippings"
---
### 安装

```
openclaw skills install gog
```

## 戈格

可 `gog` 用于 Gmail/日历/云端硬盘/通讯录/表格/文档。需要进行 OAuth 设置。

设置（一次）

常用命令

- Gmail 搜索： `gog gmail search 'newer_than:7d' --max 10`
- Gmail 发送： `gog gmail send --to a@b.com --subject "Hi" --body "Hello"`
- 日历： `gog calendar events <calendarId> --from <iso> --to <iso>`
- 驱动器搜索： `gog drive search "query" --max 10`
- 联系方式： `gog contacts list --max 20`
- 床单获取： `gog sheets get <sheetId> "Tab!A1:D10" --json`
- 表格更新： `gog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED`
- 表格追加： `gog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS`
- 床单透明： `gog sheets clear <sheetId> "Tab!A2:Z"`
- 表格元数据： `gog sheets metadata <sheetId> --json`
- 文档导出： `gog docs export <docId> --format txt --out /tmp/doc.txt`
- Docs cat： `gog docs cat <docId>`

笔记

- 设置 `GOG_ACCOUNT=you@gmail.com` 避免重复 `--account` 。
- 对于脚本编写，建议 `--json` 使用加号 `--no-input` 。
- `--values-json` 表格值可以通过（推荐）或作为内联行 传递。
- 文档支持导出/分类/复制。就地编辑需要文档 API 客户端（GOG 中不包含）。
- 发送邮件或创建活动前请确认。

### 版本标签

最新的 v k97dg6nasj52d3s3mcegcwqmx17ykzqb