vue-init
Initialize new Vue.js projects
TLDR
Create a new project using one of the default templates
Create a new project using a local template
Create a new project using a template from GitHub
SYNOPSIS
vue init
PARAMETERS
The name of the template to use. Examples: `webpack`, `webpack-simple`, `browserify`, `browserify-simple`
The name of the project to create. This will be the name of the directory created for your project.
DESCRIPTION
The `vue-init` command is **deprecated** but was a tool used to bootstrap new Vue.js projects. It was part of Vue CLI version 2 and earlier. It allowed developers to quickly scaffold a project structure with pre-configured build tools, such as Webpack or Browserify, and common project configurations. This provided a streamlined way to start developing Vue.js applications, eliminating the need to manually set up build pipelines and directory structures from scratch.
While no longer actively maintained, the underlying template system was based on `vue-cli`, providing different scaffolds of applications such as webpack-simple, browserify-simple, webpack and browserify. This command greatly sped up project initialization, it offered different project types allowing for various quick starts. The official Vue CLI 3+ no longer supports `vue-init` and recommends using `vue create` instead.
CAVEATS
The `vue-init` command is deprecated and is only functional with Vue CLI version 2 or earlier. Using `vue create` is the recommended alternative for modern Vue.js development.
MIGRATION
If you are working with a legacy project that uses `vue-init`, consider migrating to the latest Vue CLI version and using `vue create`. The new system provides better extensibility, plugin support, and a more streamlined developer experience.
TEMPLATES
Common templates included: webpack, browserify, webpack-simple, browserify-simple. These provided varying levels of configuration, from basic to more complex build setups.
HISTORY
The `vue-init` command was an integral part of the early Vue CLI (version 2 and prior). It aimed to simplify project setup by providing pre-configured templates for common development scenarios. As Vue CLI evolved to version 3 and beyond, it adopted a more plugin-based architecture, resulting in the removal of `vue-init` in favor of the more flexible `vue create` command.