Title: WP CLI commands
Last modified: July 6, 2021

---

# WP CLI commands

 *  Resolved [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-commands-4/)
 * I’m aware there is a CLI command for optimizing the media library.
 * However are there any others? It would be particularly helpful if there was a
   way to delete originals from the CLI. It goes SOoooo slow, and i lose authentication
   half way through (200,000 images).
 * Similary it’s be nice if I could tell the optimize to optimize a specific folder,
   like /2021/ instead of waiting for it to methodically and slowly go through already
   optimized files again.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-commands-4/#post-14631605)
 * Hi John,
    We only have the one command for WP-CLI at the moment, but that’s a
   good suggestion for another one. If you’d like to see it considered for a future
   release, please post it at [https://feedback.ewww.io](https://feedback.ewww.io)
 * For optimizing a single folder, it would be a little tricky, but should be possible
   via the Folders to Ignore setting on the Advanced tab available in Ludicrous 
   mode. If you add all the year folders except 2021, it would skip over all those.
   Now, note that it will still “scan” them, but it won’t have to do as many db 
   queries and that should speed things up a bit there.

Viewing 1 replies (of 1 total)

The topic ‘WP CLI commands’ is closed to new replies.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/wp-cli-commands-4/#post-14631605)
 * Status: resolved