0.0.3 • Published 4 years ago
cosdeploy v0.0.3
cosdeploy
静态网站上传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
- Fork it on GitHub!
- Clone the fork to your own machine.
- Checkout your feature branch:
git checkout -b my-awesome-feature
- Commit your changes to your own branch:
git commit -am 'Add some feature'
- Push your work back up to your fork:
git push -u origin my-awesome-feature
- 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!