Skip to content

Commit 179136a

Browse files
committed
Adds detail to the readme on installing a specific template version
1 parent aa3c1f2 commit 179136a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,25 @@ Note that the `dot` option for minimatch is set to `true` so glob patterns would
181181
}
182182
```
183183

184+
### Installing a specific template version
185+
186+
`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 (`#`).
187+
188+
The format needed for a specific official template is:
189+
190+
```
191+
vue init <template-name>#<branch-name> <project-name>
192+
```
193+
194+
Example:
195+
196+
Installing the [`1.0` branch](https://github.com/vuejs-templates/webpack-simple/tree/1.0) of the webpack-simple vue template:
197+
198+
```
199+
vue init webpack-simple#1.0 mynewproject
200+
```
201+
202+
184203
### License
185204

186205
[MIT](http://opensource.org/licenses/MIT)

0 commit comments

Comments
 (0)