cown
Qiniu bucket manager && upload tool
Screenshot
Install
$ npm install -g cown
Quick start
You need to configure a Qiniu account first:
$ cown add -a
Configure a new bucket:
$ cown add
Upload file:
$ cown upload path/to/my.png # use -p to auto copy source link
List all buckets:
$ cown ls
Use another bucket:
$ cown use <bucket name>
Remove a bucket:
$ cown rm <bucket name>
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
Commands: add [options] Add new bucket. ls [options] List all buckets. use [options] <name> Checkout bucket. rm [options] <name> Remove bucket. upload [options] <source> Upload file "-a" option
License
MIT License