Skip to content

Releases: ant-design/ant-design-cli

v6.4.2

14 May 15:59

Choose a tag to compare

v6.4.1

14 May 11:20

Choose a tag to compare

v6.4.0

14 May 07:34

Choose a tag to compare

New Features

  • doctor command now checks for known bugs in the installed antd version and displays related issue links (#89)

Bug Fixes

  • Fix lint false positives for Checkbox.Group/Radio.Groupvalue on Checkbox inside Checkbox.Group and optionType on Radio inside Radio.Group are no longer incorrectly warned (#93, closes #91)
  • Fix lint performance rule incorrectly flagging locale default imports like import enUS from 'antd/locale/en_US' and improve suggestion to use actual component names instead of always suggesting Button (#104, closes #99, #101)

Other Changes

  • Refactor update check to query multiple sources concurrently (#89)
  • Update antd metadata (v6@6.4.0)
  • Configure Dependabot for grouped updates as npm ecosystem (#102)
  • Bump dependencies and resolve security alerts (#103, #105)

v6.3.7

27 Apr 07:28

Choose a tag to compare

v6.3.6

17 Apr 10:55

Choose a tag to compare

New Features

  • Add antd v3 support — antd list, antd info, antd doc, antd demo, antd migrate 3 4 now work with v3 projects (#77)
  • Add --antd-alias flag to antd lint for recognizing wrapper import sources (#81)
  • Enhance antd env with full envinfo output (#75)
  • Add MCP tool annotations for better IDE integration (#79)

Bug Fixes

  • Fix antd token outputting plain text instead of valid JSON when no tokens available (#80)
  • Fix sync workflow never detecting new antd versions (#83)
  • Fix AI assistant proactively suggesting bug reports; bug reporting is now user-initiated only, with ANTD_NO_AUTO_REPORT=1 to fully opt out (#85, closes #82)

Other Changes

  • Update antd metadata (v6@6.3.6)
  • Require Node.js >= 20 (Commander v14 compatibility) (#76)

v6.3.5

30 Mar 09:01

Choose a tag to compare

New Features

  • Add antd env command — prints a full environment snapshot including Node.js, OS, browser, antd version, package manager, and build tool. Useful for bug reports and AI agent context.

Bug Fixes

  • Fix antd lint reporting incorrect line numbers (always showing line 0) (#65)

Other Changes

  • Update antd metadata (v6@6.3.5)
  • Bundle all dependencies into the package — eliminates 180+ transitive packages from your node_modules (#64)

v6.3.5-beta.0

25 Mar 10:44

Choose a tag to compare

New Features

  • feat: add antd mcp command — MCP server with 7 tools and 2 prompts for IDE integration (#38)

Bug Fixes

  • fix: run update check when using -V flag (#42)
  • fix(lint): rewrite all rules with oxc-parser AST analysis (#40)
  • fix(lint): avoid false positives for deprecated prop rule on unrelated components (#36)

Other Changes

  • refactor: extract core functions from 7 command modules (#38)
  • chore: keep JSON in git, exclude from npm via .npmignore (#41)
  • ci: add npm pack size detection workflow and badge (#39)
  • Update skill to instruct code agents to auto-update CLI when "Update available" notice appears (#42)

v6.3.4

24 Mar 15:44

Choose a tag to compare

Bug Fixes

  • fix: show nameZh and since in info command output (#5)
  • fix: restore missing name field in globalTokens for token command (#10)

Other Changes

  • Update antd metadata (v4@4.24.16, v5@5.29.3, v6@6.3.4)
  • ci: switch to GitHub Actions OIDC publishing, remove NPM_TOKEN (#7)
  • ci: migrate to semantic-release for automated versioning and publishing (#14)
  • chore: simplify sync workflow (#11)
  • chore: remove unused sample-data directory (#12)

v6.3.3

24 Mar 10:43

Choose a tag to compare

First release of @ant-design/cli. A CLI tool for querying Ant Design component knowledge and analyzing antd usage in projects. Designed for AI code agents (Claude Code, Cursor, Copilot, etc.) with structured output support.

📚 Knowledge Query

  • antd list — List all antd components with descriptions and categories
  • antd info <Component> — Query component API: props, types, default values; --detail for full docs, methods, FAQ
  • antd doc <Component> — Output full API documentation in markdown
  • antd demo <Component> [name] — Browse and retrieve demo source code
  • antd token [component] — Query global and component-level Design Tokens (v5+)
  • antd semantic <Component> — Show classNames and styles keys for semantic customization
  • antd changelog [v1] [v2] [component] — View changelog entries or diff APIs across versions

🔍 Project Analysis

  • antd doctor — Diagnose project configuration issues (React compat, duplicate installs, theme config, SSR)
  • antd usage [dir] — Scan project for component usage statistics and sub-component breakdown
  • antd lint [file/dir] — Check antd best practices (deprecated APIs, a11y, performance)
  • antd migrate <from> <to> — Version migration guide with breaking changes and auto-fix support

🐛 Issue Reporting

  • antd bug — Report a bug to ant-design/ant-design with auto-collected environment info
  • antd bug-cli — Report a bug to ant-design/ant-design-cli

✨ Highlights

  • 🧩 14 commands covering knowledge query, project analysis, and issue reporting
  • 📦 Multi-version support: bundled metadata for antd v4, v5, v6 — fully offline
  • 🎯 Per-minor-version snapshots for precise API data at any antd version
  • 🔄 Auto-detect project antd version from node_modules or package.json
  • 🤖 All commands support --format json|text|markdown and --lang en|zh
  • 🔮 Fuzzy matching with "Did you mean?" suggestions on typos
  • 🔀 Cross-version API diffing (e.g. v4 vs v5)
  • 🔗 Skill file for seamless integration with code agents (npx skills add ant-design/ant-design-cli)
  • 🛡️ Standard error format with error codes and actionable suggestions