Cloudflare CLI Add-On
Purge all Cloudflare cache from WP-CLI
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/forumone/cloudflare-cli/archive/refs/heads/main.zipReadme
Cloudflare CLI Add-On
Requires Cloudflare 3.4+.
Provides a command line interface to the WordPress Cloudflare plugin, for performing cache purge actions.
Quick links: Using | Installing
Using
wp cloudflare cache_purge
Clears all cached files to force Cloudflare to fetch a fresh version of those files from your web server.
EXAMPLES
# Flush Cloudflare cache after new code deployment.
$ wp cloudflare cache_purge
Success: Entire site cache on Cloudflare purged.
Installing
This package depends on the \CF\WordPress\Hooks class from the Cloudflare for WordPress plugin. Make sure this one is installed and active first.
- Download or clone the contents of this repo.
- Place the “cloudflare-cli” folder to your “/wp-content/plugins/” directory.
- Activate Cloudflare CLI Add-On from your Plugins page.
Using Composer
- Add this GitHub repo to the "repositories" key in your project's
composer.jsonfile.
composer config repositories.forumone '{ "type": "package", "package": { "name": "forumone/cloudflare-cli", "version": "dev-master", "type": "wordpress-plugin", "dist": { "type": "zip", "url": "https://github.com/forumone/cloudflare-cli/archive/master.zip" }, "require": { "composer/installers": "^1.0" } } }'
-
Require the plugin package to your project.
composer require forumone/cloudflare-cli:dev-master -
Activate Cloudflare CLI Add-On from your Plugins page.
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| v1.0.0 | Jun 22, 2020 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.