Support » Plugin: Smush Image Compression and Optimization » How to use Smush CLI?

  • Resolved Arijit Biswas

    (@dibbyo456)


    New: WP CLI support for bulk/single image Smush and bulk restore

    How can I use it? What’s the command?

Viewing 1 replies (of 1 total)
  • Update: Never mind. I found it. Incase anyone looking for the same, here we go..

    # Smush all images.
    $ wp smush compress
    *
    # Smush single image with ID = 10.
    $ wp smush compress –type=single –image=10
    *
    # Smush first 5 images.
    $ wp smush compress –type=batch –image=5

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.