Can I optimize with WP-CLI?

1 min read · Last updated June 2026

No. SlashImage does not have any WP-CLI commands yet - WP-CLI support is planned for a future update. For a large library, use the Bulk Optimize page instead - it is built for exactly that.

Optimize a large library instead

The Bulk Optimize page runs a background queue designed for libraries with thousands of images. It works through them on the server using WordPress's own scheduler, so processing continues after you navigate away.

  1. Go to Media > Bulk Optimize.
  2. Click Start Bulk Optimization.
  3. Leave the page and come back later to check progress.

For the full walkthrough, including pausing and re-optimizing, see How do I optimize images I already uploaded?.

See also

Was this helpful?