Docling 智能文档理解 是 AI Skill Hub 本期精选Agent工作流之一。在 GitHub 上收获超过 26.1k 颗 Star,综合评分 8.2 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
Docling 智能文档理解 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
Docling 智能文档理解 是一套完整的 AI Agent 自动化工作流方案。通过可视化的节点编排,将复杂的多步骤任务拆解为清晰的自动化流程,实现全程无人值守的智能处理。支持与数百种外部服务和 API 无缝集成,适合构建数据处理管线、业务自动化和 AI 辅助决策系统。
# 方式一:cargo install(推荐) cargo install cli # 方式二:从源码编译 git clone https://github.com/googleworkspace/cli cd cli cargo build --release # 二进制在 ./target/release/cli
# 查看帮助 cli --help # 基本运行 cli [options] <input> # 详细使用说明请查阅文档 # https://github.com/googleworkspace/cli
# cli 配置说明 # 查看配置选项 cli --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CLI_CONFIG="/path/to/config.yml"
One CLI for all of Google Workspace — built for humans and AI agents.<br> 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.
<p> <a href="https://www.npmjs.com/package/@googleworkspace/cli"><img src="https://img.shields.io/npm/v/@googleworkspace/cli" alt="npm version"></a> <a href="https://github.com/googleworkspace/cli/blob/main/LICENSE"><img src="https://img.shields.io/github/license/googleworkspace/cli" alt="license"></a> <a href="https://github.com/googleworkspace/cli/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/googleworkspace/cli/ci.yml?branch=main&label=CI" alt="CI status"></a> <a href="https://www.npmjs.com/package/@googleworkspace/cli"><img src="https://img.shields.io/npm/unpacked-size/@googleworkspace/cli" alt="install size"></a> </p> <br>
⬇️ 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.
npm install (or download a pre-built binary from GitHub Releases)gcloud CLI or with the gws auth setup command.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:
npm install -g @googleworkspace/cli
Or build from source:
cargo install --git https://github.com/googleworkspace/cli --locked
A Nix flake is also available at github:googleworkspace/cli
nix run github:googleworkspace/cli
On macOS and Linux, you can also install via Homebrew:
brew install googleworkspace-cli
| I have… | Use |
|---|---|
gcloud installed and authenticated | [gws auth setup](#interactive-local-desktop) (fastest) |
A GCP project but no gcloud | [Manual OAuth setup](#manual-oauth-setup-google-cloud-console) |
| An existing OAuth access token | [GOOGLE_WORKSPACE_CLI_TOKEN](#pre-obtained-access-token) |
| Existing Credentials | [GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE](#service-account-server-to-server) |
Use this when gws auth setup cannot automate project/client creation, or when you want explicit control.
1. Open Google Cloud Console in the target project: - OAuth consent screen: https://console.cloud.google.com/apis/credentials/consent?project=<PROJECT_ID> - Credentials: https://console.cloud.google.com/apis/credentials?project=<PROJECT_ID> 2. Configure OAuth branding/audience if prompted: - App type: External (testing mode is fine) 3. Add your account under Test users 4. Create an OAuth client: - Type: Desktop app 5. Download the client JSON and save it to: - ~/.config/gws/client_secret.json
[!IMPORTANT] You must add yourself as a test user. In the OAuth consent screen, click Test users → Add users and enter your Google account email. Without this, login will fail with a generic "Access blocked" error.
Then run:
gws auth login
npx skills add https://github.com/googleworkspace/cli
gws auth setup # walks you through Google Cloud project config
gws auth login # subsequent OAuth login
gws drive files list --params '{"pageSize": 5}'
All variables are optional. See .env.example for a copy-paste template.
| Variable | Description |
|---|---|
GOOGLE_WORKSPACE_CLI_TOKEN | Pre-obtained OAuth2 access token (highest priority) |
GOOGLE_WORKSPACE_CLI_CREDENTIALS_FILE | Path to OAuth credentials JSON (user or service account) |
GOOGLE_WORKSPACE_CLI_CLIENT_ID | OAuth client ID (alternative to client_secret.json) |
GOOGLE_WORKSPACE_CLI_CLIENT_SECRET | OAuth client secret (paired with CLIENT_ID) |
GOOGLE_WORKSPACE_CLI_CONFIG_DIR | Override config directory (default: ~/.config/gws) |
GOOGLE_WORKSPACE_CLI_SANITIZE_TEMPLATE | Default Model Armor template |
GOOGLE_WORKSPACE_CLI_SANITIZE_MODE | warn (default) or block |
GOOGLE_WORKSPACE_CLI_LOG | Log level for stderr (e.g., gws=debug). Off by default. |
GOOGLE_WORKSPACE_CLI_LOG_FILE | Directory for JSON log files with daily rotation. Off by default. |
GOOGLE_WORKSPACE_PROJECT_ID | GCP project ID override for quota/billing and fallback for helper commands |
Environment variables can also be set in a .env file (loaded via dotenvy).
If a required Google API is not enabled for your GCP project, you will see a 403 error with reason accessNotConfigured:
{
"error": {
"code": 403,
"message": "Gmail API has not been used in project 549352339482 ...",
"reason": "accessNotConfigured",
"enable_url": "https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=549352339482"
}
}
gws also prints an actionable hint to stderr:
💡 API not enabled for your GCP project.
Enable it at: https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=549352339482
After enabling, wait a few seconds and retry your command.
Steps to fix:
enable_url link (or copy it from the enable_url JSON field).gws command.[!TIP] You can also run gws auth setup which walks you through enabling all required APIs for your project automatically.
gws auth setup
2. Install the extension into the Gemini CLI:
gemini extensions install https://github.com/googleworkspace/cli
Installing this extension gives your Gemini CLI agent direct access to all gws commands and Google Workspace agent skills. Because gws handles its own authentication securely, you simply need to authenticate your terminal once prior to using the agent, and the extension will automatically inherit your credentials.
Sheets ranges use ! which bash interprets as history expansion. Always wrap values in single quotes:
```bash
gws auth setup requires the gcloud CLI to automate project creation. You have three options:
gcloud directly.gws auth setup which wraps gcloud calls.gcloud entirely — set up OAuth credentials manually in the Cloud ConsoleRust开发保证高性能稳定性,集成Google全套服务覆盖面广。AI Agent架构支持复杂工作流编排,2.6万星表明社区认可度高,活跃维护中。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
经综合评估,Docling 智能文档理解 在Agent工作流赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | cli |
| 原始描述 | 开源AI工作流:Google Workspace CLI — one command-line tool for Drive, Gmail, Calendar, Sheets,。⭐26.1k · Rust |
| Topics | Google WorkspaceCLI工具工作流自动化AI AgentRust |
| GitHub | https://github.com/googleworkspace/cli |
| License | Apache-2.0 |
| 语言 | Rust |
收录时间:2026-05-13 · 更新时间:2026-05-16 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端