Files
tldr/pages.zh/common/vue.md
2021-08-31 15:13:49 +08:00

19 lines
562 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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}}`