← 全部工具

@ant-design/cli

热度 65 更新于 开发与构建

CLI tool for querying antd knowledge and analyzing antd usage in projects

npmauto-collected

安装

npm
npm install -g @ant-design/cli

通过 npm 安装。

<div align="center"

<br

<img src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg" alt="Ant Design" width="72"

<h1Ant Design CLI</h1

Ant Design on your command line.<br Query component knowledge, analyze project usage, and guide migrations — fully offline.

<br

English · 中文 · Changelog

</div

<br

🤔 Why

Code agents (Claude Code, Codex, Gemini CLI) write better antd code when they have instant access to the right API data. This CLI gives them exactly that — every prop, token, demo, and changelog entry for antd v3 / v4 / v5 / v6, bundled locally, queryable in milliseconds.

npx skills add ant-design/ant-design-cli    # install as an agent skill

<br

✨ Highlights

  • 📦 Fully offline — All metadata ships with the package. No network calls, no latency, no API keys.
  • 🎯 Version-accurate — 55+ per-minor snapshots across v3/v4/v5/v6. Query the exact API surface of antd@5.3.0, not just "latest v5".
  • 🤖 Agent-optimized — --format json on every command. Structured errors with codes and suggestions. Clean stdout/stderr separation.
  • 🌍 Bilingual — Every component name, description, and doc has both English and Chinese. Switch with --lang zh.
  • 🔮 Smart matching — Typo Buttn? The CLI suggests Button using Levenshtein distance, with first-letter preference.
  • 🧩 18 commands — From prop lookup to project-wide lint, from design token queries to cross-version API diffing.
  • 🔌 MCP server — antd mcp starts a stdio server for native IDE integration (Claude Code, Cursor, VS Code, etc.).

<br

📦 Install