@vant/cli
Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.
30,230
24,395
| Install | |
|---|---|
npm install @vant/cli |
|
| Latest Version: | 7.1.0 |
| Vue: | 3 |
| Older releases: | 2 |
| License: | MIT |
| Last Updated: | Oct 22, 2026 |
| Links: | GitHub · npm |
Maintainer: chenjiahan
Vant CLI
Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.
🇨🇳 查看中文版介绍
Features
- Provides rich commands covering the complete process from development to deploy
- Based on conventional directory structure. Generate elegant document website and component examples automatically.
- ESlint built-in.
- Support Tree Shaking/Theme Customization/Import on Demand
Quickstart
To create a Vant CLI project, run:
yarn create vant-cli-app
Install Manually
# via npm
npm i @vant/cli -D
# via yarn
yarn add @vant/cli -D
# via pnpm
pnpm add @vant/cli -D
# via Bun
bun add @vant/cli -D
Please add the followed config to package.json file.
{
"scripts": {
"dev": "vant-cli dev",
"test": "vant-cli test",
"lint": "vant-cli lint",
"build": "vant-cli build",
"prepare": "husky",
"release": "vant-cli release",
"build-site": "vant-cli build-site"
},
"nano-staged": {
"*.md": "prettier --write",
"*.{ts,tsx,js,vue,less,scss}": "prettier --write",
"*.{ts,tsx,js,vue}": "eslint --fix"
},
"eslintConfig": {
"root": true,
"extends": ["@vant"]
},
"prettier": {
"singleQuote": true
},
"browserslist": ["Chrome >= 51", "iOS >= 10"]
}
More Details
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 7.1.0 | MIT | |
| 7.0.3 | MIT | |
| 7.0.2 | MIT | |
| 7.0.1 | MIT | |
| 7.0.0 | MIT | |
| 6.2.0 | MIT | |
| 6.1.0 | MIT | |
| 6.0.2 | MIT | |
| 6.0.1 | MIT | |
| 6.0.0 | MIT | |
| 5.1.1 | MIT | |
| 5.1.0 | MIT | |
| 5.0.2 | MIT | |
| 5.0.1 | MIT | |
| 5.0.0 | MIT | |
| 4.0.4 | MIT | |
| 4.0.3 | MIT | |
| 4.0.2 | MIT | |
| 4.0.1 | MIT | |
| 4.0.0 | MIT | |
| 3.11.4 | MIT | |
| 3.11.3 | MIT | |
| 3.11.2 | MIT | |
| 3.11.1 | MIT | |
| 3.11.0 | MIT | |
| 3.10.9 | MIT | |
| 3.10.8 | MIT | |
| 3.10.7 | MIT | |
| 3.10.6 | MIT | |
| 3.10.5 | MIT |
Showing the latest 30 of 127. See every release on npm
Pre-releases (97)
| Version | Released | License |
|---|---|---|
| 5.0.0-beta.0 | MIT | |
| 4.0.0-rc.6 | MIT | |
| 4.0.0-rc.5 | MIT | |
| 4.0.0-rc.4 | MIT | |
| 4.0.0-rc.3 | MIT | |
| 4.0.0-rc.2 | MIT | |
| 4.0.0-rc.1 | MIT | |
| 4.0.0-rc.0 | MIT | |
| 4.0.0-beta.8 | MIT | |
| 4.0.0-beta.7 | MIT | |
| 4.0.0-beta.6 | MIT | |
| 4.0.0-beta.5 | MIT | |
| 4.0.0-beta.4 | MIT | |
| 4.0.0-beta.3 | MIT | |
| 4.0.0-beta.2 | MIT | |
| 4.0.0-beta.1 | MIT | |
| 4.0.0-beta.0 | MIT | |
| 4.0.0-alpha.0 | MIT | |
| 3.12.0-alpha.0-postcss | MIT | |
| 3.12.0-alpha.2-jest | MIT | |
| 3.12.0-alpha.1-jest | MIT | |
| 3.12.0-alpha.0-jest | MIT | |
| 3.9.4-beta.0 | MIT | |
| 3.7.0-beta.3 | MIT | |
| 3.7.0-beta.2 | MIT | |
| 3.7.0-beta.1 | MIT | |
| 3.7.0-beta.0 | MIT | |
| 3.0.0-rc.4 | MIT | |
| 3.0.0-rc.3 | MIT | |
| 3.0.0-rc.2 | MIT |
Showing the latest 30 of 97. See every release on npm