To create a Vue-CLI project, follow these steps:
- We need to open Terminal (macOS or Linux) or the Command Prompt/PowerShell (Windows) and execute the following command:
> vue create initial-vuex
- The CLI will ask some questions that will help with the creation of the project. You can use the arrow keys to navigate, the Enter key to continue, and the Spacebar to select an option.
- There are two methods for starting a new project. The default method is a basic babel and eslint project without any plugin or configuration, and the Manually mode, where you can select more modes, plugins, linters, and options. We will go for Manually:
? Please pick a preset: (Use arrow keys)
default (babel, eslint)
❯ Manually select features
- Now we are asked about the features that we will want in the project. Those features are some Vue plugins such as Vuex or Router (Vue-Router), testers, linters, and more. Select Babel, Router, Vuex, and Linter / Formatter:
? Check the features...