ali-cdn-cli
refresh and push ali-cdn in shell
Last updated 2 years ago by flyskywhy .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ali-cdn-cli 
SYNC missed versions from official npm registry.

ali-cdn-cli

A cli wrapper of aliyun-cdn-refresh to simplify Refresh and push interface for aliyun cdn api

CDN缓存概览

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

  Options:

    -i, --AccessKeyId <value>      Aliyun AccessKeyId
    -k, --AccessKeySecret <value>  Aliyun AccessKeySecret
    -d, --refreshDir <dir>         refresh dir on CDN Cache to be expired
    -f, --refreshFile <file>       refresh file on CDN Cache to be expired
    -p, --pushFile <file>          push file into CDN L2 Cache
    -h, --help                     output usage information

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

ali-cdn-cli --refreshDir http://yourcdndomain/img/
ali-cdn-cli --refreshFile http://yourcdndomain/img/1.png

使用CDN后,文件与源文件不一致,如何刷新缓存

预热 push file into CDN L2 cache

ali-cdn-cli --pushFile http://yourcdndomain/img/1.png

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

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 1
Last Week 2
Last Month 4
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |