DingTalk Workspace CLI
$ dws 官方出品 中风险DingTalk Workspace CLI(dws)是阿里巴巴钉钉官方开源的 Apache-2.0 Go 命令行工具,将钉钉核心能力统一到单个跨平台 CLI 中;支持 --format json 结构化输出、多 Profile 切换、审批、日程、DING 消息、AI 表格以及内置的 dws skill setup 技能安装。
npm install -g dingtalk-workspace-cli dws 在单文件工具中直接提供 --format json 输出与 dws skill setup 多 Agent 技能布局,比笨重的钉钉 MCP 封装更轻量可控。
核心事实概览
- 命令名
- $ dws
- FCRS-1.0 总分
- 88/100 (良好 (Good))
- 证据置信度
- 高置信度 (实测)
- CLI vs MCP 建议
- 优先选 CLI
- 评测日期
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
面向 AI Agent 场景打造,提供一致的 --format json 输出、Profile 检视以及 dws skill setup(SKILL.md)集成。
- Supports
--format jsonacross auth, profile, and workspace commands - Includes
SKILL.mdanddws skill setup(official_skill)
支持多 Profile 隔离(dws profile list)与分级应用/用户认证,但写操作缺少全局 --dry-run 开关。
- Named profile isolation and
dws auth statusverification
跨平台 Go 二进制,可通过 npm install -g dingtalk-workspace-cli、官方安装脚本(含 Gitee 镜像)与 GitHub Releases 获取。
- Installable via
npm, shell/PowerShell scripts, and GitHub releases
将钉钉审批、日历、DING 通知、AI 表格与技能市场检索整合于一体。
- Covers approvals, calendar, DING messages, AI tables, and skill market
钉钉官方 DingTalk-Real-AI/dingtalk-workspace-cli 仓库(4.2k+ 星标,Apache-2.0)持续积极维护。
- Official DingTalk Apache-2.0 repository with 4.2k+ stars
提供清晰的 README、技能检索(dws skill search)及结构化命令帮助。
- Includes
SKILL.mddocumentation and cross-platform install guides
安全边界、鉴权与放权指南
将命名的钉钉认证配置保存在本地 ~/.dws/ 目录,可通过 dws profile list --format json 与 dws auth status --format json 查看。
CLI 本身开源免费(Apache-2.0);使用需具备钉钉企业账号及对应应用权限。
# 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 高频安全命令配方
只读查询(安全推荐)
dws auth status --format json
以结构化 JSON 输出当前已认证的工作区身份与令牌状态。
dws profile list --format json
以 JSON 格式展示已保存的钉钉 Profile 及当前激活项。
受控写入与预演
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 宿主
Follow 家族生态联动
同分类相关 CLI: 办公协作与 SaaS
进入分类页 →基于 Google Discovery 动态生成的办公套件 CLI,自带 JSON 载荷、`--dry-run` 与官方 `SKILL.md`。
面向 Agent 设计的 App Store Connect CLI,支持以 `--output json` 自动化 TestFlight 上传、App Store 提交、本地化与 Xcode Cloud。
专为开发者与 AI Agent 打造的 Clerk 官方 CLI,支持 `--mode agent`、`--input-json` 与 `--dry-run`。
Datadog Labs 官方伴侣 CLI,覆盖 33+ Datadog 产品,支持 `--output json`、`--no-envelope` 与自动 AI Agent 识别。
专为人类与 AI Agent 打造的官方飞书 / Lark CLI,提供 200+ 命令、`--json` 结构化信封与 20+ 内置 Agent Skills。