# cos-cli

> cos-cli

Latest version **0.0.3** (published 2016-12-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install cos-cli
pnpm add cos-cli
yarn add cos-cli
bun add cos-cli
```

Provides the command `cos`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2016-12-02 |
| First published | 2016-11-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Youmoo |
| Maintainers | youmoo |
| Keywords | cos, cos-cli |

## Links

- npm: https://www.npmjs.com/package/cos-cli
- npm.io page: https://npm.io/package/cos-cli

## Dependencies (2)

- [commander](https://npm.io/package/commander.md) ^2.9.0
- [qos-node-client](https://npm.io/package/qos-node-client.md) 0.0.3

## Recent versions

- 0.0.3 (latest) — 2016-12-02
- 0.0.2 — 2016-11-30
- 0.0.1 — 2016-11-29

## README

cos-cli
=======


### Usage

在*HOME*目录下新建一个.cos.json的文件内容如下:

```json
{
  "appId": "your app id",
  "secretId": "your secret id",
  "secretKey": "your secret key",
  "bucket": "your bucket"
}
```

然后安装*cos-cli*:`npm i -g cos-cli`

执行一下命令:

```bash
# 查看帮助
cos -h

# 查看版本号
cos -V

# 查看上传帮助
cos upload -h

# 上传文件
cos upload hello.txt

# 上传文件，指定服务器端的文件名
cos upload hello.txt --path /hello.log

# 上传文件，覆盖同名的文件
cos upload hello.txt --path /hello.log --overwrite

# 上传文件，上传完成后删除本地文件
cos upload hello.txt --path /hello.log --delete

# 删除cdn上的文件
cos rm /hello.lg

# 删除cdn上的文件夹
cos rm /dir/

# 查看目录下文件
cos ls /path/
```

## Todos

- [ ] 美化控制台输出
- [ ] 补充文档
- [ ] 支持批量上传

---
_Source: https://npm.io/package/cos-cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
