LinuxCommandLibrary

vue

Vue.js project management CLI

TLDR

Create new project
$ vue create [project-name]
copy
Create with preset
$ vue create -p [preset] [project-name]
copy
Start GUI
$ vue ui
copy
Add plugin
$ vue add [plugin]
copy
Invoke generator
$ vue invoke [plugin]
copy
Inspect webpack config
$ vue inspect
copy
Serve single file
$ vue serve [App.vue]
copy
Build single file
$ vue build [App.vue]
copy

SYNOPSIS

vue command [options] [args]

DESCRIPTION

vue is the command-line interface for Vue CLI, providing tools for creating, configuring, and managing Vue.js application projects. It scaffolds new projects with interactive prompts or saved presets, setting up build tooling, linting, testing, and other development infrastructure automatically.
The CLI includes a graphical user interface accessible via `vue ui` for visually managing projects, plugins, dependencies, and build tasks in a browser. Plugins can be added to existing projects to integrate features like Vue Router, Vuex state management, TypeScript support, and testing frameworks.
For rapid prototyping, `vue serve` and `vue build` can compile individual Vue single-file components without requiring a full project setup. The `vue inspect` command displays the resolved webpack configuration, which is helpful for debugging build issues.

PARAMETERS

create NAME

Create project.
ui
Open GUI.
add PLUGIN
Add plugin.
invoke PLUGIN
Run generator.
inspect
Show webpack config.
serve FILE
Dev server.
build FILE
Build file.
-p, --preset NAME
Project preset.
-d, --default
Use default preset.

CAVEATS

Vue CLI for Vue 2/3. Vite recommended for new Vue 3. Node.js required.

HISTORY

Vue CLI was created by Evan You for Vue.js project management. Version 3+ provides plugin-based architecture.

SEE ALSO

npm(1), vite(1), node(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard