#!/usr/bin/env/ node
npm install -g your-own-cli
your-own-cli
vue create
vue add
vue invoke
vue command [options]
options全称:–version、–help
options简写:-V、-h
带params的options: --path /Users/sam/Desktop/vue-test
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
create [options] create a new project powered by vue-cli-service
add [options] [pluginOptions] install a plugin and invoke its generator in an already created project
invoke [options] [pluginOptions] invoke the generator of a plugin in an already created project
inspect [options] [paths...] inspect the webpack config in a project with vue-cli-service
serve alias of "npm run serve" in the current project
build alias of "npm run build" in the current project
ui [options] start and open the vue-cli ui
init [options] generate a project from a remote template (legacy API, requires
@vue/cli-init)
config [options] [value] inspect and modify the config
outdated [options] (experimental) check for outdated vue cli service / plugins
upgrade [options] [plugin-name] (experimental) upgrade vue cli service / plugins
migrate [options] [plugin-name] (experimental) run migrator for an already-installed cli plugin
info print debugging information about your environment
help [command] display help for command
Run vue --help for detailed usage of given command.
Usage: vue create [options]
create a new project powered by vue-cli-service
Options:
-p, --preset Skip prompts and use saved or remote preset
-d, --default Skip prompts and use default preset
-i, --inlinePreset Skip prompts and use inline JSON string as preset
-m, --packageManager Use specified npm client when installing dependencies
-r, --registry Use specified npm registry when installing dependencies (only for npm)
-g, --git [message] Force git initialization with initial commit message
-n, --no-git Skip git initialization
-f, --force Overwrite target directory if it exists
--merge Merge target directory if it exists
-c, --clone Use git clone when fetching remote preset
-x, --proxy Use specified proxy when creating project
-b, --bare Scaffold project without beginner instructions
--skipGetStarted Skip displaying "Get started" instructions
-h, --help display help for command
还有很多,比如: