# ali-oss-cli **Repository Path**: julywind/ali-oss-cli ## Basic Information - **Project Name**: ali-oss-cli - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CLI > 命令行工具 ## 安装 ```bash # yarn yarn global add @julywind/ali-cli # npm npm i -g @julywind/ali-cli ``` ## 使用方式 支持的环境变量: ``` #如果有这些环境变量 命令,可以忽略部分参数 如ak/sk/bucket ALI_AK: accessKey ALI_SK: secretKey ALI_BUCKET_NAME: 目标桶名称 ali-cli -h ``` ``` Usage: ali-cli [options] Command line interface for aliyun cdn-cli Options: -V, --version output the version number -v, --version version -s, --source-dir source dir --ak access key, read From env --sk secret key, read From env -b, --bucket bucket name -t, --target-dir target s3 path -c, --auto-clear-local clear local files --auto-clear-remote clear remote files -a, --acl default: public-read -h, --help output usage information ``` ```bash cd path/to/your/project touch cdn.config.js ``` `cdn.config.js` ```js module.exports = { // ...configs } ``` 或者 `vue.config.js` ```js module.exports = { pluginOptions: { // ...configsΩ } } ``` ## 文档 - [CDN](./docs/cdn/) ## 参考 - [Node Path API](https://nodejs.org/dist/latest-v8.x/docs/api/path.html) - [multimatch (用于选取文件)](https://github.com/sindresorhus/multimatch) - [globby (用于选取文件)](https://github.com/sindresorhus/globby) - [@vue/cli Docs (用于参考文档)](https://github.com/vuejs/vue-cli/tree/dev/docs) - [@vue/cli 主文件](https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli/bin/vue.js)] - [commander](https://github.com/tj/commander.js) - [make-dir](https://github.com/sindresorhus/make-dir) - [del](https://github.com/sindresorhus/del)