名称: gog
描述: 用于 Gmail、日历、Drive、通讯录、Sheets 和 Docs 的 Google Workspace 命令行工具。
主页: https://gogcli.sh
元数据: {"clawdbot":{"emoji":"🎮","requires":{"bins":["gog"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/gogcli","bins":["gog"],"label":"安装 gog (brew)"}]}}
使用 gog 管理 Gmail、日历、Drive、通讯录、Sheets 和 Docs。需要先配置 OAuth 认证。
gog auth credentials /path/to/client_secret.jsongog auth add you@gmail.com --services gmail,calendar,drive,contacts,sheets,docsgog auth listgog gmail search 'newer_than:7d' --max 10gog gmail send --to a@b.com --subject "Hi" --body "Hello"gog calendar events <calendarId> --from <iso> --to <iso>gog drive search "query" --max 10gog contacts list --max 20gog sheets get <sheetId> "Tab!A1:D10" --jsongog sheets update <sheetId> "Tab!A1:B2" --values-json '[["A","B"],["1","2"]]' --input USER_ENTEREDgog sheets append <sheetId> "Tab!A:C" --values-json '[["x","y","z"]]' --insert INSERT_ROWSgog sheets clear <sheetId> "Tab!A2:Z"gog sheets metadata <sheetId> --jsongog docs export <docId> --format txt --out /tmp/doc.txtgog docs cat <docId>GOG_ACCOUNT=you@gmail.com 可避免重复输入 --account。--json 输出格式并配合 --no-input 参数。--values-json 传递(推荐),或直接以行内格式输入。