Skip to content

$ cat flush-fastly-cdn-via-clicommand-line-for-adobe-commerce-projects.md

Flush Fastly CDN via CLI/Command Line for Adobe Commerce Projects

Learn how to purge the entire Fastly CDN cache from the command line with a single curl request when the Adobe Commerce admin panel is unavailable. The post also explains where to find your Fastly API key and service ID on a Commerce Cloud cluster.

dor.ky16 Nov 2025 · 1 min read · summary
Read on dor.ky ↗
If you ever need the ability to flush Fastly but can’t acess an Adobe Commerce admin panel to do so, you can run the following curl request: curl -H "Fastly-Key: API_KEY” -X POST "https://api.fastly.com/service/SERVICE_ID/purge_all" You can fetch both your API_KEY key and SERVICE_ID from the file mounted at: /mnt/shared/fastly_tokens.txt in your Commerce Cloud cluster.

source

This is a summary of an article first published by dor.ky. The full piece is on their site.

Open original