tldr/pages.zh/common/vue.md

19 lines
553 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# vue-cli
> 用于初始化 Vue.js 项目的 CLI.
> 本帮助适用于旧的 `vue-cli@2` 和 `@vue/cli-init` 插件,新版 CLI 文档请参见更多信息
> 官方模板包括webpack, webpack-simple, browserify, browserify-simple, simple.
> 更多信息:<https://cli.vuejs.org>.
- 从模板创建新项目:
`vue init {{template}} {{project_name}}`
- 从本地模板创建新项目:
`vue init {{path/to/template_directory}} {{project_name}}`
- 从 Github 上拉取模板并创建新项目:
`vue init {{username}}/{{repo}} {{project_name}}`