https://github.com/fjc0k/better-qiniu-cli
更好的 Node.js 七牛云命令行工具。
https://github.com/fjc0k/better-qiniu-cli
cli qiniu qiniu-cli qiniu-sdk
Last synced: about 2 months ago
JSON representation
更好的 Node.js 七牛云命令行工具。
- Host: GitHub
- URL: https://github.com/fjc0k/better-qiniu-cli
- Owner: fjc0k
- License: mit
- Created: 2018-09-20T10:51:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-03-14T09:00:13.000Z (about 5 years ago)
- Last Synced: 2025-02-10T11:44:12.748Z (3 months ago)
- Topics: cli, qiniu, qiniu-cli, qiniu-sdk
- Language: TypeScript
- Size: 192 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# better-qiniu-cli
更好的 Node.js 七牛云命令行工具。
## 安装
```bash
yarn add better-qiniu-cli -D# 或者
npm i better-qiniu-cli -D
```## 用法
### 配置
在项目根目录下新建 `qiniu.config.ts` 文件,写入配置:
```js
import { Config } from 'better-qiniu-cli'export const config: Config = {
accessKey: 'Access 密钥',
secretKey: 'Secret 密钥',
tasks: [
{
type: '任务类型',
options: {
// 任务选项
}
},
]
}
```**注意:** `tasks` 中指定的任务将依次顺序执行。
### 使用
```bash
yarn qiniu
```在 `package.json` 中你可以这么使用:
```json
{
"scripts": {
"deploy": "qiniu"
}
}
```