wp media regenerate unknown –image_size parameter

I was able to duplicate the issue when running WP-CLI version 1.1.0, but the command worked successfully when I updated to the nightly build using:

wp cli update --nightly

The --image-size parameter was added to wp-cli/media-command on April 13, 2017 after the current stable release of WP-CLI v1.1.0 on February 1, 2017. This feature is available in the nightly builds and will likely appear in a future stable release.

Update: As of WP-CLI version 1.2.0, wp media regenerate --image_size=large will work right out of the box.

Leave a Comment