@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

@vant/nuxt

Vant module for Nuxt

133,431 96
caic

基于vant二次封装的vue插件

2,470
vant18

Lightweight Mobile UI Components built on Vue(Add i18n support)

865
vant-i18n

Lightweight Mobile UI Components built on Vue(Add i18n support)

548
@daysnap/horn-ui

hron ui

3,143

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
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