Title: Does WP-CLI support Cloudflare?
Last modified: June 9, 2019

---

# Does WP-CLI support Cloudflare?

 *  Resolved [Timofey Drozhzhin](https://wordpress.org/support/users/drtimofey/)
 * (@drtimofey)
 * [7 years ago](https://wordpress.org/support/topic/does-wp-cli-support-cloudflare/)
 * Hi, I’m trying to figure out how to flush all cache including Cloudflare via 
   WP-CLI “wp lscache-purge all”. We run this command on each deployment. Is there
   a way to do it via WP-CLI?
 * Thanks! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/does-wp-cli-support-cloudflare/#post-11622498)
 * Hi [@drtimofey](https://wordpress.org/support/users/drtimofey/), if you are using`
   LiteSpeed Cache Setting > CDN > Cloudflare API` linked with your Cloudflare account,
   running `wp lscache-purge all` can also purge Cloudflare cache.
 *  Thread Starter [Timofey Drozhzhin](https://wordpress.org/support/users/drtimofey/)
 * (@drtimofey)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/does-wp-cli-support-cloudflare/#post-11624597)
 * Hi, the command is definitely not purging Cloudflare. However, manually purging
   the Cloudflare from LightSpeed-Cache Settings does work. I wonder if the order
   of purging is incorrect….
 * I will debug the issue and update this ticket.
 *  Plugin Support [Hai Zheng⚡](https://wordpress.org/support/users/hailite/)
 * (@hailite)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/does-wp-cli-support-cloudflare/#post-11624681)
 * Apologized for the misled answer. Our purge all cmd doesn’t support CDN API yet.
   So the only way to purge cdn is operate from LSCWP manage menu -> CDN tab.
 * We will add this api supported later. We had the plan to communicate to CDN for
   purge all / single post purge.
 *  Thread Starter [Timofey Drozhzhin](https://wordpress.org/support/users/drtimofey/)
 * (@drtimofey)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/does-wp-cli-support-cloudflare/#post-11624775)
 * Thank you for confirming! Looking forward to the update 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Does WP-CLI support Cloudflare?’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [Timofey Drozhzhin](https://wordpress.org/support/users/drtimofey/)
 * Last activity: [6 years, 12 months ago](https://wordpress.org/support/topic/does-wp-cli-support-cloudflare/#post-11624775)
 * Status: resolved