CLI 目录 横向对比 FCRS-1.0 标准 关于我们 /llms.txt

DingTalk Workspace CLI

$ dws 官方出品 中风险
DingTalk (Alibaba) · 办公协作与 SaaS · Apache-2.0 · macos / linux / windows · 评测日期:

DingTalk Workspace CLI(dws)是阿里巴巴钉钉官方开源的 Apache-2.0 Go 命令行工具,将钉钉核心能力统一到单个跨平台 CLI 中;支持 --format json 结构化输出、多 Profile 切换、审批、日程、DING 消息、AI 表格以及内置的 dws skill setup 技能安装。

FCRS-1.0 综合评分
88 /100
良好 (Good)
高置信度 (实测)
零摩擦安装命令
npm install -g dingtalk-workspace-cli
CLI vs MCP 选型建议 优先选 CLI

dws 在单文件工具中直接提供 --format json 输出与 dws skill setup 多 Agent 技能布局,比笨重的钉钉 MCP 封装更轻量可控。

核心事实概览

命令名
$ dws
FCRS-1.0 总分
88/100 (良好 (Good))
证据置信度
高置信度 (实测)
CLI vs MCP 建议
优先选 CLI
评测日期

Agent 友好度体检单

✓ 原生 JSON 输出
— 字段裁剪
✓ 无头非交互
— 支持 Dry-Run
— 只读模式开关
— 支持 NO_COLOR
✓ 自省/Schema 发现
✓ 官方 SKILL.md

当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。

FCRS-1.0 六维评分拆解

Agent 友好度 23 / 25

面向 AI Agent 场景打造,提供一致的 --format json 输出、Profile 检视以及 dws skill setup(SKILL.md)集成。

  • Supports --format json across auth, profile, and workspace commands
  • Includes SKILL.md and dws skill setup (official_skill)
安全与权限边界 20 / 25

支持多 Profile 隔离(dws profile list)与分级应用/用户认证,但写操作缺少全局 --dry-run 开关。

  • Named profile isolation and dws auth status verification
安装与运行摩擦 14 / 15

跨平台 Go 二进制,可通过 npm install -g dingtalk-workspace-cli、官方安装脚本(含 Gitee 镜像)与 GitHub Releases 获取。

  • Installable via npm, shell/PowerShell scripts, and GitHub releases
能力覆盖与边际价值 13 / 15

将钉钉审批、日历、DING 通知、AI 表格与技能市场检索整合于一体。

  • Covers approvals, calendar, DING messages, AI tables, and skill market
维护与来源背书 10 / 10

钉钉官方 DingTalk-Real-AI/dingtalk-workspace-cli 仓库(4.2k+ 星标,Apache-2.0)持续积极维护。

  • Official DingTalk Apache-2.0 repository with 4.2k+ stars
文档与可验证性 8 / 10

提供清晰的 README、技能检索(dws skill search)及结构化命令帮助。

  • Includes SKILL.md documentation and cross-platform install guides

安全边界、鉴权与放权指南

鉴权方式
浏览器 OAuth 本地配置文件 服务账号密钥
凭证存储位置

将命名的钉钉认证配置保存在本地 ~/.dws/ 目录,可通过 dws profile list --format json 与 dws auth status --format json 查看。

潜在副作用
只读查询 本地写入 远端写入 破坏性删除
费用与配额提示

CLI 本身开源免费(Apache-2.0);使用需具备钉钉企业账号及对应应用权限。

可复制到 CLAUDE.md / AGENTS.md 的安全护栏
# DingTalk Workspace CLI (dws) Agent Rules
- Run `dws auth status --format json` and `dws profile list --format json` before workspace actions.
- Always pass `--format json` on read and write commands.
- Require user confirmation before triggering DING alerts, approvals, or external messages.

Agent 高频安全命令配方

只读查询(安全推荐)

以 JSON 格式查看钉钉认证状态
dws auth status --format json

以结构化 JSON 输出当前已认证的工作区身份与令牌状态。

列出已配置的工作区 Profile
dws profile list --format json

以 JSON 格式展示已保存的钉钉 Profile 及当前激活项。

受控写入与预演

为 Claude Code 安装内置 Agent 技能
dws skill setup --mode multi --target claude

将官方 SKILL.md 工作区技能文件写入本地 Claude Code 技能目录。

核心优势

  • + 认证、Profile 与工作区操作原生支持 --format json 输出。
  • + 随附官方 SKILL.md 与 dws skill setup,开箱即用适配编程 Agent。
  • + 官方 Apache-2.0 Go 二进制,并提供面向国内网络的 Gitee 镜像安装脚本。

注意事项与踩坑点

  • ! 发送 DING 消息或审批操作前缺少全局 --dry-run 预演模式。
  • ! 部分企业级接口仍需钉钉组织管理员开通应用权限。

已验证兼容的 Agent 宿主

Claude Code Codex CLI Gemini CLI

同分类相关 CLI: 办公协作与 SaaS

进入分类页 →
$ gws

基于 Google Discovery 动态生成的办公套件 CLI,自带 JSON 载荷、`--dry-run` 与官方 `SKILL.md`。

$ polar

Polar 官方开发者变现 CLI,用于管理商品、结账、订单与 Webhook,支持 `--fields` 与 `-d/--data`。

$ asc

面向 Agent 设计的 App Store Connect CLI,支持以 `--output json` 自动化 TestFlight 上传、App Store 提交、本地化与 Xcode Cloud。

$ clerk

专为开发者与 AI Agent 打造的 Clerk 官方 CLI,支持 `--mode agent`、`--input-json` 与 `--dry-run`。

$ pup

Datadog Labs 官方伴侣 CLI,覆盖 33+ Datadog 产品,支持 `--output json`、`--no-envelope` 与自动 AI Agent 识别。

$ lark-cli

专为人类与 AI Agent 打造的官方飞书 / Lark CLI,提供 200+ 命令、`--json` 结构化信封与 20+ 内置 Agent Skills。