s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.6k stars 905 forks source link

How to purge cache directly from s3cmd #1256

Closed ryjanx closed 2 years ago

ryjanx commented 2 years ago

Hello.

Is there a s3cmd command to purge the cache? It's so annoying to always purge the cache from the dashboard.

Thanks in advance!

robd003 commented 2 years ago

That's a really good idea!

Do you normally invalidate the whole site ( /* ) or just a few files?

ryjanx commented 2 years ago

Normally the whole site. But both is good options to have..

fviard commented 2 years ago

I'm right that your are speaking about the "cloudfront" invalidation? if yes, there is a pending work to allow it.

fviard commented 2 years ago

The cfinval command was just added in MASTER to manually request invalidation for paths.

Examples of usage: