🛍️ 更多精选好物 ›
📊 公开数据一览
| 📦 榜单安装量 | 67.0K |
| ⭐ GitHub Stars | 30,165(fork 1762) |
| 🗓️ 最近推送 | 2026-08-01 |
| 🌱 项目创建 | 2026-03-02 |
| 💻 语言 / License | Rust · Apache-2.0 |
| 🐛 开放Issue | 117 |
📝 工具简介
Google Workspace命令行工具,统一管理Drive、Gmail、日历、表格等,含AI代理技能。
📖 怎么用
先装 CLI,任选一种:`npm install -g @googleworkspace/cli`、`cargo install --git https://github.com/googleworkspace/cli --locked`、`nix run github:googleworkspace/cli` 或 `brew install googleworkspace-cli`。然后初始化认证,跑 `gws auth setup` 它会引导你配置 Google Cloud 项目,再 `gws auth login` 做 OAuth 登录。之后就能用了,比如 `gws drive files list --params '{"pageSize": 5}'` 列文件。注意它动态读取 Google Discovery Service,命令会自动更新。
📋 迷你测评
Google Workspace命令行工具,统一管Drive、Gmail、日历、表格等,含AI代理技能。亮点是跨应用统一操作,减少切换成本。简介未提命令数量,适合Google生态用户。
📄 README 要点
这是一个统一的Google Workspace命令行工具,专为人类和AI代理设计,覆盖Drive、Gmail、Calendar等所有Workspace API,零样板代码,输出结构化JSON,内置40多个代理技能。它不维护静态命令列表,而是在运行时读取Google自己的Discovery服务,动态生成整个命令面,所以Google Workspace新增API或方法时,它能自动跟上。注意这不是Google官方产品,目前还在积极开发中,可能会有破坏性变更。安装需要Node.js 18以上,或者直接下载预编译的二进制文件。适合需要批量操作Google Workspace的开发者,或者想用AI代理来自动化处理邮件、日历、文件管理的场景。
查看英文原文
gws One CLI for all of Google Workspace — built for humans and AI agents. Drive, Gmail, Calendar, and every Workspace API. Zero boilerplate. Structured JSON output. 40+ agent skills included. [!NOTE] This is not an officially supported Google product. ⬇️ Download the latest release for your OS gws doesn't ship a static list of commands. It reads Google's own Discovery Service at runtime and builds its entire command surface dynamically. When Google Workspace adds an API endpoint or method, gws picks it up automatically. [!IMPORTANT] This project is under active development. Expect breaking changes as we march toward v1.0. Contents Prerequisites Installation Quick Start Why gws? Authentication AI Agent Skills Advanced Usage Environment Variables Exit Codes Architecture Troubleshooting Development Prerequisites Node.js 18+ — for npm install (or download a pre built binary from GitHub Releases) A Google Cloud project — required for OAuth credentials. You can create one via the Google Cloud Console or with the gcloud CLI or with the gws auth setup command. A Google account with access to Google Workspace Installation The recommended way to install gws is to download the pre built binary for your OS and architecture from the GitHub Releases page. Extract the archive and place the gws binary in your $PATH . For convenience, you can also use npm to automate downloading the appropriate binary from GitHub Releases: [安装/使用命令见下方] Or build from source: [安装/使用命令见下方] A Nix flake is also available at github:googleworkspace/cli [安装/使用命令见下方] On macOS and Linux, you can also install via Homebrew: [安装/使用命令见下方] Quick Start [安装/使用命令见下方] Why gws? For humans — stop writing curl calls against REST docs. gws gives you help on every resource, dry run to preview requests, and auto‑pagination. For AI agents — every response is structured JSON. Pair it with the included agent skills and your LLM can manage Workspace without custom tooling. [安装/使用命令见下方] Authentication The CLI supports multiple a
💬 评论(0)
交流使用体验、避坑建议;违规内容将被删除