🎮 Gog2 — 技能工具
v1.0.0[自动翻译] Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
详细分析 ▾
运行时依赖
版本
Initial release of gog: Google Workspace CLI - Provides command-line access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs. - Supports OAuth credential setup and multi-service account authorization. - Includes commands for searching email, sending messages, managing calendars, searching Drive, listing contacts, and manipulating Sheets and Docs. - Offers scripting support with JSON outputs and no-input mode. - Configuration tips for repeated account use and command confirmations included.
安装命令
点击复制本土化适配说明
Gog2 — 技能工具 安装说明: 安装命令:npx clawhub@latest install gog2
技能文档
Use gog for Gmail/Calendar/Drive/Contacts/Sheets/Docs. Requires OAuth setup.
Setup (once)
gog auth credentials /path/to/client_secret.jsongog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docsgog auth list
Common commands
- Gmail search:
gog gmail search 'newer_than:7d' --max 10 - Gmail send:
gog gmail send --to a@b.com --subject "Hi" --body "Hello" - Calendar:
gog calendar events --from --to - Drive search:
gog drive search "query" --max 10 - Contacts:
gog contacts list --max 20 - Sheets get:
gog sheets get "Tab!A1:D10" --json - Sheets update:
gog sheets update "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTERED - Sheets append:
gog sheets append "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWS - Sheets clear:
gog sheets clear "Tab!A2:Z" - Sheets metadata:
gog sheets metadata --json - Docs export:
gog docs export --format txt --out /tmp/doc.txt - Docs cat:
gog docs cat
Notes
- Set
GOG_ACCOUNT=you@gmail.comto avoid repeating--account. - For scripting, prefer
--jsonplus--no-input. - Sheets values can be passed via
--values-json(recommended) or as inline rows. - Docs supports export/cat/copy. In-place edits require a Docs API client (not in gog).
- Confirm before sending mail or creating events.