From 179136a1e65d8824736641035e8c9bf2b625e9e1 Mon Sep 17 00:00:00 2001 From: cschmitz Date: Wed, 7 Sep 2016 09:27:36 -0500 Subject: [PATCH] Adds detail to the readme on installing a specific template version --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 13f0237756..cbe6d8b943 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,25 @@ Note that the `dot` option for minimatch is set to `true` so glob patterns would } ``` +### Installing a specific template version + +`vue-cli` uses the tool [`download-git-repo`](https://github.com/flipxfx/download-git-repo) to download the official templates used. The `download-git-repo` tool allows you to indicate a specific branch for a given repository by providing the desired branch name after a pound sign (`#`). + +The format needed for a specific official template is: + +``` +vue init # +``` + +Example: + +Installing the [`1.0` branch](https://github.com/vuejs-templates/webpack-simple/tree/1.0) of the webpack-simple vue template: + +``` +vue init webpack-simple#1.0 mynewproject +``` + + ### License [MIT](http://opensource.org/licenses/MIT)