Getting Started

Ant Design Pro is a production-ready solution for admin interfaces. Built on the design principles developed by Ant Design, this project introduces higher level components; we have developed templates, components, and a corresponding design kit to improve the user and development experience for admin interfaces.

Tips before development

Ant Design Pro is a front-end scaffolding. By default, readers have already understood some basic front-end knowledge, and understand umi and Ant Design. If you are a pure novice, it is recommended to read Beginner's Need to know. Sharpen the knife and chop wood by mistake. Knowing some basic knowledge can make the learning curve smoother.


We have pro-cli to quickly provide initial scaffolding.

# use npm
npm i @ant-design/pro-cli -g
pro create myapp

Select the version of umi

🐂 Use umi@4 or umi@3 ? (use arrow keys)
❯ umi@4

If there is a umi@4 version, the display does not support full block selection.

With umi@3, it's a good template, pro is the basic template, it only provides the content of the framework operation, and completely includes all the plates, if the pro is suitable as a basic template for secondary development selection

🚀 Do you want the full amount or a simple scaffolding? (use arrow keys)
❯ simple

Install dependencies:

$ cd myapp && tyarn
// or
$ cd myapp && npm install


The development can begin after the initialization of the scaffolding is successful, and we have provided some commands to assist in the development.

cd myapp && npm install

Run this first to install/update any required dependencies.


Running this script starts the service and automatically opens the default browser to show your page. When you re-edit the code, the page will also refresh automatically.



Running this script will compile your project, and you can find the compiled files in the dist directory of the project for deployment.


If you need to deploy, you can review the [deployment]((/docs/deploy).


The analyze script does the same thing as build, but he opens a page showing your dependency information. If you need to optimize performance and package size, you need it.



We offer a range of lint scripts, including TypeScript, less, css, md files. You can use this script to see what problems your code has. In commit we automatically run the related lint.



Same as lint, but the lint error is fixed automatically.



This script will attempt to remove all i18n code from the project, which is not good for complex run-time code and is used with caution.

more cli