Socket
Socket
Sign inDemoInstall

ali-cdn-cli

Package Overview
Dependencies
120
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ali-cdn-cli

refresh and push ali-cdn in shell


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
3.57 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 31 Jul 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc