gitmyhub

ant-design-cli

TypeScript ★ 226 updated 21h ago

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

This is a command-line tool for working with Ant Design, a popular set of pre-built interface components used to build web applications. The CLI gives developers and AI coding assistants fast, offline access to detailed information about every Ant Design component across multiple versions of the library.

The tool ships with all component data bundled locally, so there is no internet connection required and no API key needed. You can look up the available settings for any component, read its documentation, view code examples, and see how the API changed between library versions. It covers Ant Design versions 3 through 6, with over 55 snapshots so you can query the exact state of the library at a specific release.

Beyond documentation lookup, the tool can scan your project's source code to find which components you are using, check for outdated or deprecated API usage, and generate a step-by-step migration checklist when you need to upgrade from one major version to another. A diagnostic command runs checks on your project configuration to catch common setup problems.

For developers using AI coding tools, the CLI can run as an MCP server, which lets editors like Cursor or Claude Desktop call its commands directly as tools within the AI assistant interface. There is also a skill file that teaches code agents when and how to use each command automatically.

The project is open source under the MIT license and is maintained by the Ant Design team. It supports English and Chinese output throughout, with a flag to switch between languages on any command.