• Resolved giuexe95

    (@giuexe95)


    Hi,

    I wanted to use the new function of the 2.1 version of Imagify, the bulk optimization and the regeneration of missing webp images via CLI commands.

    I did some tests, but I can’t seem to make it work.

    Once the command (ex: wp imagify bulk-optimize [–smart]) is launched, the terminal returns “Imagify bulk optimization triggered” but nothing happens on the site.

    Am I launching the wrong command? What are all the commands that we can use?

    Thanks in advance

    • This topic was modified 1 year, 3 months ago by giuexe95.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP Media

    (@wp_media)

    Hi @giuexe95 and Happy New Year!

    This is a short guide on how to use WP CLI for Imagify:

    wp imagify bulk-optimize <contexts>... [--lossless]

    Where contexts can be wp and custom-folders, you can use one or the other or both, separated by a space.

    Adding the --lossless option will use the lossless compression – wp imagify generate-missing-webp <contexts>

    Same thing for the contexts.
    You can type wp help imagify bulk-optimize and wp help imagify generate-missing-webp to get the info too on the command line.

    So, it should be working fine that way. Let me know if you need any further assistance, I am happy to help.

    Best Regards,

    Ioanna

    Thread Starter giuexe95

    (@giuexe95)

    Thank you very much Ioanna!

    I’ve tried it and now it works just fine!

    Have a nice day!

    Is there a detailed help topic anywhere on the cli usage?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp CLI usage’ is closed to new replies.