DingTalk Workspace CLI
$ dws Official Med RiskDingTalk Workspace CLI (dws) is Alibaba DingTalk's official Apache-2.0 Go CLI uniting DingTalk product capabilities for human and AI agent workflows. It supports --format json structured output, profile switching, approvals, calendar scheduling, DING messages, AI tables, and built-in agent skill setup (dws skill setup).
npm install -g dingtalk-workspace-cli dws provides --format json outputs and dws skill setup multi-agent skill layouts directly in one binary, outperforming bulky DingTalk MCP wrappers.
At a Glance
- Command
- $ dws
- FCRS-1.0 Score
- 88/100 (Good)
- Evidence Tier
- High Confidence
- CLI vs MCP
- CLI Preferred vs MCP
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Built explicitly for AI agent scenarios with uniform --format json output, profile inspection, and dws skill setup (SKILL.md) integration.
- Supports
--format jsonacross auth, profile, and workspace commands - Includes
SKILL.mdanddws skill setup(official_skill)
Supports multi-profile isolation (dws profile list) and scoped DingTalk app/user auth, though it lacks a universal --dry-run flag on write commands.
- Named profile isolation and
dws auth statusverification
Distributed as a cross-platform Go binary via npm install -g dingtalk-workspace-cli, install scripts (with Gitee mirror), and GitHub releases.
- Installable via
npm, shell/PowerShell scripts, and GitHub releases
Consolidates DingTalk approvals, calendar, DING notifications, AI tables, and skill discovery into a single binary.
- Covers approvals, calendar, DING messages, AI tables, and skill market
Official DingTalk-Real-AI/dingtalk-workspace-cli repository (4.2k+ stars, Apache-2.0) actively maintained by DingTalk.
- Official DingTalk Apache-2.0 repository with 4.2k+ stars
Clear README, skill market search (dws skill search), and structured CLI help.
- Includes
SKILL.mddocumentation and cross-platform install guides
Security, Auth & Guardrails
Stores named DingTalk auth profiles locally in ~/.dws/, inspectable via dws profile list --format json and dws auth status --format json.
CLI is free (Apache-2.0); requires a DingTalk organization account and app permissions.
# 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-Ready Command Recipes
Safe Read-Only Queries
dws auth status --format json
Reports current authenticated workspace identity and token status as JSON.
dws profile list --format json
Lists saved DingTalk profiles and active selection in structured JSON.
Controlled Writes & Previews
dws skill setup --mode multi --target claude
Writes SKILL.md workspace skill files into the local Claude Code skills directory.
Strengths for Agents
- + Native
--format jsonsupport across auth, profile, and workspace operations. - + Ships official
SKILL.mddefinitions anddws skill setupfor coding agents. - + Official Apache-2.0 Go binary with Gitee mirror support for mainland China networks.
Caveats & Pitfalls
- ! Lacks a global
--dry-runflag before dispatching DING notifications or approvals. - ! Enterprise DingTalk permissions still require organization admin approval.
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Workspace & SaaS
View category hub →Dynamic Discovery-driven CLI for Drive, Gmail, Calendar, and Docs with JSON payloads, `--dry-run`, and `SKILL.md`.
Official Polar developer monetization CLI for products, checkouts, orders, and webhooks with `--fields` and `-d/--data`.
Agent-native App Store Connect CLI for TestFlight, App Store submissions, localizations, and Xcode Cloud with `--output json`.
Official Clerk CLI built for developers and AI agents with `--mode agent`, `--input-json`, and `--dry-run`.
Official Datadog Labs CLI companion across 33+ Datadog products with `--output json`, `--no-envelope`, and automatic AI agent detection.
Official Lark/Feishu CLI built for humans and AI agents with 200+ commands, `--json` envelopes, and 20+ built-in Agent Skills.