0.0.3 • Published 4 years ago

cosdeploy v0.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

cosdeploy

Build Status Coverage Status License NPM Downloads NPM Version Dependency Status devDependency Status Code Style

静态网站上传COS CLI

Installation

$ npm install cosdeploy

# or yarn
$ yarn add cosdeploy

CLI Usage

Use npx:

$ npx cosdeploy <input> [options]

Globally install:

$ npm install cosdeploy -g
# or yarn
$ yarn global add cosdeploy
$ cosdeploy --help
demo v0.1.0

Usage:
  $ cosdeploy <input>

Commands:
  <input>  init | delete | upload

For more info, run any command with the `--help` flag:
  $ cosdeploy --help

Options:
  --sid <sid>        用户的 SecretId 
  --sk <sk>          用户的 SecretKey 
  --dir <dir>        要上传的COS目录 
  --bucket <bucket>  存储桶的名称 
  --region <region>  存储桶所在地域 
  --domain <domain>  调用操作存储桶和对象的 API 时自定义请求域名 
  --dist <dist>      本地目录 
  --del              上传之前是否清空之前的版本 
  -h, --help         Display this message 
  -v, --version      Display version number 

Examples:
  $ cosdeploy upload --del

Contributing

  1. Fork it on GitHub!
  2. Clone the fork to your own machine.
  3. Checkout your feature branch: git checkout -b my-awesome-feature
  4. Commit your changes to your own branch: git commit -am 'Add some feature'
  5. Push your work back up to your fork: git push -u origin my-awesome-feature
  6. Submit a Pull Request so that we can review your changes.

NOTE: Be sure to merge the latest from "upstream" before making a pull request!

License

MIT © Mick

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago