1
【笔记】通过命令行刷新腾讯云CDN缓存
source link: https://loli.fj.cn/2023/05/17/%E9%80%9A%E8%BF%87%E5%91%BD%E4%BB%A4%E8%A1%8C%E5%88%B7%E6%96%B0%E8%85%BE%E8%AE%AF%E4%BA%91CDN%E7%BC%93%E5%AD%98/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【笔记】通过命令行刷新腾讯云CDN缓存
2023-05-17
通过命令行刷新腾讯云CDN缓存
安装tccli
MacOS
brew tap tencentcloud/tccli
brew install tccli
初始化配置
<secretId>
:配置密钥编号<secretKey>
:配置密钥
tccli configure set secretId <secretId>
tccli configure set secretKey <secretKey>
刷新URL
tccli cdn PurgeUrlsCache --Urls '["<url>"]'
预热URL
tccli cdn PushUrlsCache --Urls '["<url>"]'
<type>
:类型
flush
:刷新产生更新的资源delete
:刷新全部资源
tccli cdn PurgePathCache --Paths '["<url>"]' --FlushType <type>
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK