ali-dcdn-cli

1.0.3 • Public • Published

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 的预热任务是否执行完成

/ali-dcdn-cli/

    Package Sidebar

    Install

    npm i ali-dcdn-cli

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.17 kB

    Total Files

    5

    Last publish

    Collaborators

    • chaslui