Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

qshell-bin

liufei31MIT2.2.0

一键安装 qshell

qshell, qiniu

readme

qshell-bin

一键安装 qshell

作为命令行工具

全局

安装

npm i -g qshell-bin

使用

官方文档

本地

安装

npm i -D qshell-bin

使用

package.json中增加以下内容:

"scripts": {
  "deploy": "qshell account $ACCESS_KEY $SECRET_KEY user_qshell && qshell qupload .qsh
 ell.json"
}

创建.qshell.json文件,并填写配置:

{
  "src_dir": "",
  "bucket": "",
  "key_prefix": "",
  "rescan_local": true,
  "skip_suffixes": ".html"
}

在项目编译完成后,执行以下命令上传文件到七牛 CDN:

npm run deploy

作为项目依赖

安装

npm i -D qshell-bin

使用

在代码中引入:

const qshell = require('qshell-bin')

qshell(['--version'])