Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/djyde/cown
- Owner: djyde
- Created: 2016-01-23T01:23:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-05-09T10:13:42.000Z (over 8 years ago)
- Last Synced: 2024-07-13T04:32:58.470Z (2 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
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