From fc7f20c4da4a0f60906fb1cbd8759b92ce849370 Mon Sep 17 00:00:00 2001 From: Lloyd Atkinson Date: Mon, 17 Jun 2019 21:36:39 +0100 Subject: [PATCH] Add creating new project in existing directory 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. --- docs/guide/creating-a-project.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/guide/creating-a-project.md b/docs/guide/creating-a-project.md index 6183a92cd3..b71c85a800 100644 --- a/docs/guide/creating-a-project.md +++ b/docs/guide/creating-a-project.md @@ -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.