mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-17 04:40:03 -06:00
docs: add tips on creating new project in existing directory (#4162) [ci skip]
In #1509 it is shown that a new project can be created in the an existing directory. This is a common scenario (e.g. creating a repo on GitHub, cloning it, and then running `vue create`). This commit makes this functionality more well known.
This commit is contained in:
committed by
Haoqun Jiang
parent
0723ceba54
commit
d1b7121102
@@ -8,6 +8,12 @@ To create a new project, run:
|
||||
vue create hello-world
|
||||
```
|
||||
|
||||
A new project can also be generated inside an existing directory, like so:
|
||||
|
||||
``` bash
|
||||
vue create .
|
||||
```
|
||||
|
||||
::: warning
|
||||
If you are on Windows using Git Bash with minTTY, the interactive prompts will not work. You must launch the command as `winpty vue.cmd create hello-world`.
|
||||
If you however want to still use the `vue create hello-world` syntax, you can alias the command by adding the following line to your `~/.bashrc` file.
|
||||
|
||||
Reference in New Issue
Block a user