1.0.3 • Published 4 years ago

ali-dcdn-cli v1.0.3

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

ali-dcdn-cli

A cli to simplify Refresh and push interface for aliyun dcdn api

npm install -g ali-dcdn-cli
  Usage: ali-dcdn-cli [options]

  Options:
    -i, --AccessKeyId <value>      Aliyun AccessKeyId
    -k, --AccessKeySecret <value>  Aliyun AccessKeySecret
    -r, --refresh <objectPath>     refresh file or dir on DCDN Cache
    -p, --preload <objectPah>      push file or dir into DCDN L2 Cache
    -h, --help                     output usage information

刷新缓存 refresh dir or file on DCDN Cache to be expired

ali-dcdn-cli -i xxx -k xxx -r http://yourcdndomain/img/
ali-dcdn-cli -i xxx -k xxx -r http://yourcdndomain/img/1.png

预热 preload file into DCDN L2 cache

ali-dcdn-cli -i xxx -k xxx -r http://yourcdndomain/img/1.png

如何判断 CDN 的预热任务是否执行完成