1.0.2 • Published 4 years ago

@julywind/ali-cli v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

CLI

命令行工具

安装

# 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 <sourceDir>  source dir
   --ak <accessKey>              access key, read From env
   --sk <secretKey>              secret key, read From env
   -b, --bucket <bucket name>    bucket name
   -t, --target-dir <targetDir>  target s3 path
   -c, --auto-clear-local        clear local files
   --auto-clear-remote           clear remote files
   -a, --acl <acl>               default: public-read
   -h, --help                    output usage information
cd path/to/your/project
touch cdn.config.js

cdn.config.js

module.exports = {
  // ...configs
}

或者 vue.config.js

module.exports = {
  pluginOptions: {
  // ...configsΩ
  }
}

文档

参考