Skip to content

Instantly share code, notes, and snippets.

@Drozerah
Last active February 12, 2019 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Drozerah/4f91f37ae0dc7c968e1450e6ec616165 to your computer and use it in GitHub Desktop.
Save Drozerah/4f91f37ae0dc7c968e1450e6ec616165 to your computer and use it in GitHub Desktop.
Using 'vue init' command line with Vue CLI 3 installed

Using 'vue init' command line with Vue CLI 3 installed

Vue CLI 3 uses the same vue binary, so it overwrites Vue CLI 2 (vue-cli). If we still want to use the vue init command when the Vue CLI 3 is installed, we need to install a global package :

npm install -g @vue/cli-init

This package enable vue init command again, @vue/cli-init is an alias to the old vue-cli@2.x.

Usage

$ vue init <template-name> <project-name>

Example:

$ vue init simple my-project

Go and see the vue-cli official templates list on npmjs.com or vuejs-templates

See also Pulling 2.x Templates (Legacy) on Vue doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment