🛍️ 更多精选好物 ›
📊 公开数据一览
| 📦 榜单安装量 | 25.8K |
| ⭐ GitHub Stars | 30,166(fork 1762) |
| 🗓️ 最近推送 | 2026-08-01 |
| 🌱 项目创建 | 2026-03-02 |
| 💻 语言 / License | Rust · Apache-2.0 |
| 🐛 开放Issue | 117 |
📝 工具简介
命令行工具,统一操作Drive、Gmail、Calendar等Google服务,支持AI agent技能。
📖 怎么用
安装用 `npm install -g @googleworkspace/cli` 或 `brew install googleworkspace-cli`。配置就是 `gws auth setup` 加 `gws auth login` 两步。这个 skill 主要用来在邮件里插入 Drive 链接,操作时先调 Drive API 获取文件链接,再通过 Gmail API 发邮件。命令格式类似 `gws drive files list --params '{"pageSize": 5}'`,输出 JSON 格式。README 没说明具体流程,但 gws 会自动读取 Google 的 Discovery Service,所以新接口也能直接用。
📋 迷你测评
命令行工具,统一操作Google服务。亮点是自动插入Drive链接,省去手动查找。适合需要频繁分享文件的场景,但简介未提链接权限处理细节。
📄 README 要点
这个工具也是gws项目的一部分,功能与上面几个完全相同——一个统一的Google Workspace CLI,覆盖Drive、Gmail、Calendar等所有API。核心特点是运行时动态构建命令,自动适配Google新增的API端点,输出结构化JSON,内置40多个代理技能。安装方式包括npm和预编译二进制,需要Node.js 18+。目前项目处于活跃开发阶段,可能会有破坏性更新。适合需要在邮件中自动插入Drive链接、管理Google Workspace资源的自动化场景。
查看英文原文
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)
交流使用体验、避坑建议;违规内容将被删除