VDone Demo VDone Demo
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)

Nikolay Tuzov

Backend Developer
Home
  • Articles

    • JavaScript
  • Study Notes

    • JavaScript Tutorial
    • Professional JavaScript
    • ES6 Tutorial
    • Vue
    • React
    • TypeScript: Build Axios from Scratch
    • Git
    • TypeScript
    • JS Design Patterns
  • HTML
  • CSS
  • Technical Docs
  • GitHub Tips
  • Node.js
  • Blog Setup
  • Learning
  • Interviews
  • Miscellaneous
  • Practical Tips
  • Friends
About
Bookmarks
  • Categories
  • Tags
  • Archives
GitHub (opens new window)
  • 基础

  • 组件

  • 过渡&动画

  • 可复用性&组合

  • 工具

    • Vue CLI v3 Project Creation Guide
      • vue create
      • Graphical Interface
  • 规模化

  • Vuex

  • 其他

  • 《Vue》笔记
  • 工具
xugaoyi
2020-02-20
Contents

Vue CLI v3 Project Creation Guide

# Vue CLI v3.x Project Creation Guide

Official Documentation (opens new window)

The CLI version used below is v3.11.0

# vue create

  1. Run the following command to create a new project:
vue create hello-world
1
  1. You will be prompted to pick a preset. You can either choose the default preset which comes with basic Babel + ESLint setup, or select "Manually select features" to pick the features you need.
Vue CLI v3.11.0
? Please pick a preset: (Use arrow keys)
> default (babel, eslint)
  Manually select features
1
2
3
4

The default preset only includes Babel + ESLint. If you need Router, CSS Pre-processors, etc., select "Manually select features".

  1. Manually select features
Vue CLI v3.11.0
? Please pick a preset: Manually select features
? Check the features needed for your project: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>(*) Babel # Transpile modern JS to older versions (for compatibility)
 ( ) TypeScript # Add TypeScript support
 ( ) Progressive Web App (PWA) Support # PWA support
 ( ) Router # Router
 ( ) Vuex # State management
 ( ) CSS Pre-processors # CSS pre-processors
 (*) Linter / Formatter # Use ESLint to check code quality
 ( ) Unit Testing # Unit testing
 ( ) E2E Testing  # E2E testing
1
2
3
4
5
6
7
8
9
10
11
12

The graphical interface provides feature descriptions

  1. Use history mode for router? (Requires proper server setup for index fallback in production) By using the HTML5 History API, URLs no longer need the '#' character.
Vue CLI v3.11.0
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, CSS Pre-processors, Linter
? Use history mode for router? (Requires proper server setup for index fallback in production) (Y/n)
1
2
3
4
  1. Pick a CSS pre-processor
Vue CLI v3.11.0
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, CSS Pre-processors, Linter
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default):
  Sass/SCSS (with dart-sass)
  Sass/SCSS (with node-sass)
  Less
> Stylus
1
2
3
4
5
6
7
8
9
  1. Pick an ESLint config
Vue CLI v3.11.0
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, CSS Pre-processors, Linter
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Pick a linter / formatter config: (Use arrow keys)
  ESLint with error prevention only
  ESLint + Airbnb config
> ESLint + Standard config
  ESLint + Prettier
1
2
3
4
5
6
7
8
9
10
  1. Pick additional lint features
Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)
>(*) Lint on save
 ( ) Lint and fix on commit
1
2
3
  1. Where do you prefer placing config for Babel, PostCSS, ESLint, etc.?
Vue CLI v3.11.0
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, CSS Pre-processors, Linter
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Pick a linter / formatter config: Standard
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)Lint on save
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? (Use arrow keys)
> In dedicated config files
  In package.json
1
2
3
4
5
6
7
8
9
10
  1. Save this as a preset for future projects?
Vue CLI v3.11.0
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, CSS Pre-processors, Linter
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Stylus
? Pick a linter / formatter config: Standard
? Pick additional lint features: (Press <space> to select, <a> to toggle all, <i> to invert selection)Lint on save
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedicated config files
? Save this as a preset for future projects? (y/N)
1
2
3
4
5
6
7
8
9

~/.vuerc

Saved presets will be stored in a JSON file named .vuerc in the user's home directory. If you want to modify saved presets/options, you can edit this file.

# Graphical Interface

For those who are not yet very familiar with Vue CLI, you can use the graphical interface. Running the following command will automatically open the interface:

vue ui
1

The graphical interface has a Chinese localization, an intuitive feature interface, and feature descriptions.

Edit (opens new window)
#Vue
Last Updated: 2026/03/21, 12:14:36
Mixins
Vuex Operations

← Mixins Vuex Operations→

Recent Updates
01
How I Discovered Disposable Email — A True Story
06-12
02
Animations in Grid Layout
09-15
03
Renaming a Git Branch
08-11
More Articles >
Theme by VDone | Copyright © 2026-2026 Nikolay Tuzov | MIT License | Telegram
  • Auto
  • Light Mode
  • Dark Mode
  • Reading Mode