In this article, I will guide you with the Commonly Used Vue.js Commands. When creating a Vue.js app, the best way to create and run the application is to use Vue CLI. This is a command-line interface that allows us to choose from a range of tools. This article will teach us how to install vue.js cli and other useful commands to create a new project and install other required functionalities.
Prerequisites
- node.js installed
You can install the latest version of Node.js from here.
1. Vue Cli installation
npm install -g @vue/cli2. Vue.js version
vue --version3. npm version
npm -v4. node version
node -v5. Upgrading CLI
npm update -g @vue/cli6. Create a Project
vue create demoa-app7. Project creating options,
vue create --help8. Create a Project Using the GUI
vue ui9. Run the Project
npm run serve10. Pre-Processors Saas
npm install -D sass-loader sass11. Less
npm install -D less-loader less12. Installing Plugins in an Existing Project, install eslint
vue add eslint13. CLI Service
npm run serve14. Command to build on production
npm run buildSummary
This article taught us about commonly used commands in a Vue.js application.


Join the conversation! Your thoughts help the community grow.