开源推荐
morning
GitHub 热门项目:gogcli
摘要
GitHub项目:gogcli 仓库地址:https://github.com/openclaw/gogcli Stars:8355 | 作者:openclaw 项目描述:Google Workspace in your terminal. ================================================== README 内容: # gog 🧭 — Google ...
gogcli
gog
openclaw
github
com
https
the
and
gmail
install
2026-09-01
1 阅读
约7分钟阅读
GitHub Trending
字号:
GitHub 项目:gogcli
仓库地址:https://github.com/openclaw/gogcli
星级:8355 | 作者:张开爪
项目描述:终端中的 Google Workspace。
===================================================
自述文件内容:
# gog 🧭 — 来自终端的 Google Workspace

[](https://github.com/openclaw/gogcli/actions/workflows/ci.yml)
[](https://github.com/openclaw/gogcli/releases/latest)
[](https://go.dev/)
[](许可证)
[](https://github.com/openclaw/homebrew-tap)
`gog` 是 Gmail、日历、云端硬盘、文档、表格和其他应用程序的命令行客户端
更广泛的 Google Workspace 界面。它是为人员、脚本、CI 和
需要显式帐户路由、机器可读输出和安全性的代理
控制。
````bash
gog --readonly gmail 搜索 'is:unread newer_than:7d' --max 10 --json
gog --只读日历事件 --today --json
gog --readonly 驱动审核共享 --parent --json
````
对于最低权限的 Gmail 授权,请使用“gog auth add you@example.com --services gmail --gmail-scope send”仅发送,或使用“--gmail-scope read-send”也可在没有邮箱修改或设置管理权限的情况下读取邮件。
## 安装
Homebrew 是 macOS 和 Linux 上的最短路径:
````bash
酿造安装openclaw/tap/gogcli
gog——版本
````
使用Go:
````bash
去安装 github.com/openclaw/gogcli/cmd/gog@latest
gog——版本
````
模块路径从 `github.com/steipete/gogcli` 移至
`github.com/openclaw/gogcli`。直到该移动之后标记的第一个版本是
已发布,“@latest”仍然选择声明先前路径的旧标签
并失败;同时从旧路径安装特定版本:
````bash
去安装 github.com/steipete/gogcli/cmd/gog@v0.34.2
````
Docker 映像、Windows 存档、原始 macOS/Linux 二进制文件和源构建
[安装指南](docs/install.md) 中有介绍。
## 快速开始
在 [Google Cloud 项目](https://console.cloud.google.com/auth/clients) 中创建桌面 OAuth 客户端,
下载其 JSON 文件,并仅授权您需要的服务:
````bash
gog auth 凭证设置 ~/Downloads/client_secret_*.json
gog auth add you@gmail.com --services gmail、日历、驱动器
导出 GOG_ACCOUNT=you@gmail.com
gog auth doctor --检查
gog gmail 搜索 'newer_than:7d' --max 10
````
[五分钟快速入门](docs/quickstart.md) 涵盖 API 支持、OAuth
同意屏幕、每周令牌过期避免、无头授权以及
帐户默认。
## 使用 Google 服务
命令遵循您正在使用的资源。这些是常见的入口
点; [示例](docs/examples.md) 并生成
[命令索引](docs/commands/README.md) 覆盖整个表面。
|工作|开始
这篇文章对您有帮助吗?
订阅66必读
每日精选科技资讯,直达你的邮箱