🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@cubetool/cli

Package Overview
Dependencies
Maintainers
7
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cubetool/cli

开发者工具 CLI 命令接口

latest
npmnpm
Version
2.2.1
Version published
Weekly downloads
26
8.33%
Maintainers
7
Weekly downloads
 
Created
Source

cubetool cli 工具

开发者工具 CLI 命令接口

安装

npm install @cubetool/cli -g

注意:如果之前装过旧版 cube 开发者工具,需要手动先卸载,卸载参考命令:sudo npm uninstall @hao360/cubetool -g

初始化

与旧版不同,v2 版的开发者工具基础功能只包括简单的编译功能,其他功能都交由插件实现,这样能方便不同的使用场景下自行拓展功能。

在官方 cli 工具下提供了 doctor 子命令用来初始化和工具异常损坏下的修复尝试,初次安装完可以使用以下命令进行工具初始化:

cubetool doctor

支持命令

cubetool

  • cubetool --help 打印帮助信息,同时可在任意子命令下使用。
  • cubetool --debug debug 模式,将在控制台打印日志。
  • cubetool --npm-registry 设置开发者工具内部 npm registry,在安装插件等子命令时比较有用。

cubetool plugin

插件管理相关功能。

  • cubetool plugin list 打印已安装插件。
  • cubetool plugin install 安装插件。
  • cubetool plugin uninstall 卸载插件。

cubetool doctor

开发者工具功能检测。

  • cubetool doctor 默认打印系统相关信息、系统插件检测、版本检测功能。
  • cubetool doctor info 仅打印系统相关信息。
  • cubetool doctor version 开发者工具和已安装插件版本检测。
  • cubetool doctor sysplugins 检测核心系统插件,如缺失将自动安装相应插件。

cubetool config

配置开发者工具。

  • cubetool config [key] [value] 添加/修改配置项。
  • cubetool doctor --list 查看所有配置项目。
  • cubetool doctor --edit 编辑配置项文件。
  • cubetool doctor --plugin <plugin> 加上此参数可配置/查看插件配置。

cubetool check

版本检测

  • cubetool check 检查版本。
  • cubetool check beta 检查 beta tag 下版本。

拓展子命令功能

可通过插件的方式拓展 cubetool 支持的命令,只需在插件模块下配置 clis 对象即可,具体参考开发文档。

Keywords

cube

FAQs

Package last updated on 18 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts