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