SuperAPI AI 工具集

gog-cli

通用与其它

查看项目

更新于 10-16 03:05

技能介绍

用途:gog-cli 是用于在命令行中操作 Google Workspace 服务的工具,覆盖邮件、日历、云盘、表格、文档与演示、联系人、任务、团队消息及教育课程等场景。

主要能力:按服务提供对应命令,例如 gog gmail search 'newer_than:7d' --max 10 搜索邮件,gog calendar events primary --today 查看今日日程,gog drive ls --max 20 列出文件,gog sheets get <spreadsheetId> 'Sheet1!A1:B10' 读取单元格,gog tasks lists 列出任务清单。各服务详细用法见对应参考文件(如 references/gmail.md、references/calendar.md、references/drive.md、references/sheets.md、references/docs-slides.md、references/contacts.md、references/tasks.md、references/chat.md、references/classroom.md)。

全局选项:--account <email|alias> 指定账号;--json 输出机器可读 JSON;--plain 输出制表符分隔纯文本;--force 跳过确认;--no-input 在需要输入时直接失败,适合 CI;--verbose 显示 API 请求与响应。

辅助命令:gog time now 查看当前时间,可加 --timezone America/New_York;gog auth list --check 与 gog auth status 查看认证状态。

使用提示:配合 --json 便于脚本处理或管道传给 jq;多数 ID 可从 Google 网址中获取(如表格 ID 在表格 URL 中);Gmail 搜索使用 Google 搜索语法(from:、to:、subject:、newer_than: 等);日历可用 "primary" 作为主日历的 calendarId。

限制:资料未提供安装方式、认证配置步骤、收费与平台支持等细节,暂未提供。