Skip to content

ChasLui/ali-dcdn-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

refresh and preload ali-dcdn in shell

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%