Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/djyde/cown

Qiniu bucket manager and uploader
https://github.com/djyde/cown

Last synced: about 2 months ago
JSON representation

Qiniu bucket manager and uploader

Awesome Lists containing this project

README

        

# cown

Qiniu bucket manager && upload tool

## Screenshot

![](http://blogscdn.qiniudn.com/cown.gif)

## Install

```bash
$ npm install -g cown
```

## Quick start

You need to configure a Qiniu account first:

```bash
$ cown add -a
```

Configure a new bucket:

```bash
$ cown add
```

Upload file:

```bash
$ cown upload path/to/my.png # use -p to auto copy source link
```

List all buckets:

```bash
$ cown ls
```

Use another bucket:

```bash
$ cown use
```

Remove a bucket:

```bash
$ cown rm
```

## Usage

### Mode

There are two modes in `cown`, one is `bucket mode`, the other is `account mode`. Using `-a` option to run in `account mode`.

`cown` is running on `bucket mode` by default. Because we always operate bucket instead of account.

For example, when we run `$ cown add`, you will add a new bucket. But if you run it with a `-a` option (`$ cown add -a`), you will be going to add a new account instead.

All action can be run in `account mode` except `upload` action.

### Commands

```bash
Commands:

add [options] Add new bucket.
ls [options] List all buckets.
use [options] Checkout bucket.
rm [options] Remove bucket.
upload [options] Upload file

"-a" option for account mode.

Options:

-h, --help output usage information
-V, --version output the version number
```

# License

MIT License