// summary
The @ant-design/cli provides a comprehensive, offline-first command line tool for querying Ant Design component metadata and documentation. It supports developers and AI agents by offering version-accurate API lookups, project analysis, and automated migration guidance across multiple Ant Design versions. The tool integrates seamlessly into development workflows through direct CLI commands, MCP server support, and agent-ready output formats.
// technical analysis
The @ant-design/cli is a specialized command-line tool designed to provide instant, offline access to Ant Design API metadata, documentation, and migration guides. By bundling comprehensive version snapshots for antd v3 through v6, it solves the problem of slow or inaccurate documentation lookups for developers and AI code agents. Its architecture prioritizes developer experience and agent-readiness, offering structured JSON outputs and an MCP server to facilitate seamless integration into modern IDEs and automated workflows.
// key highlights
// use cases
// getting started
To begin, install the CLI globally using 'npm install -g @ant-design/cli'. Once installed, you can immediately query component information using commands like 'antd info Button' or run 'antd doctor' to diagnose your current project's configuration. For AI-assisted development, you can add it as a skill using 'npx skills add ant-design/ant-design-cli' or configure it as an MCP server in your IDE settings.