Created
February 11, 2020 10:34
-
-
Save uurtech/e82e4ab0e4f2c0bf38b20e49720fde81 to your computer and use it in GitHub Desktop.
Bash command to purge cloudflare cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo alias purge_cache=\"curl -X POST "https://api.cloudflare.com/client/v4/zones/YOUR_ZONE/purge_cache" -H "Authorization: Bearer YOUR_TOKEN" -H "Content-Type: application/json" --data "{"purge_everything":true}"\" >> ~/.zshrc && source | |
#then you can use purge_cache in your terminal to purge caches in cloudflare zone that you provided |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment