Skip to content

Commit d1b7121

Browse files
lloydjatkinsonhaoqunjiang
authored andcommitted
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.
1 parent 0723ceb commit d1b7121

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: docs/guide/creating-a-project.md

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ To create a new project, run:
88
vue create hello-world
99
```
1010

11+
A new project can also be generated inside an existing directory, like so:
12+
13+
``` bash
14+
vue create .
15+
```
16+
1117
::: warning
1218
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`.
1319
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.

0 commit comments

Comments
 (0)