npm.io
0.2.12 • Published 4 years agoCLI

@fri-cli/core

Licence
ISC
Version
0.2.12
Deps
13
Size
8 kB
Vulns
0
Weekly
0

工具

  • vscode: 代码编辑器

命令概览

image.png

安装 vue-cli
npm install -g @fri-cli/core

OR

yarn global add @fri-cli/core


在安装 fri-cli 之后,执行 fri 命令,就可以得到上面图片中的内容,从这个图片中可以看出,目前有 4个选项和2 种命令。
选项:

选项:
  -V, --version                  获取fri-cli版本
  -d, --debug                    输出命令运行的调试信息
  -tp, --target_path <path>      初始化的执行NPM包目录
  -h, --help                     display help for command

命令:

  • init
使用: fri init [options] [project-name]

项目初始化命令

Options:
  -f, --force  是否强制初始化项目
  -h, --help   display help for command
  -tp --target_path 自定义初始化npm包目录
  • help


常见 npm 包
  • commander:The complete solution for node.js command-line interfaces.。
  • Inquirer:A collection of common interactive command line user interfaces。
  • colors: get colors in your node.js console
  • npmlog: The logger util that npm uses.
  • path-exists: Check if a path exists
  • semver: The semantic versioner for npm