Regenerate thumbnails with WP-CLI

You can easily regenerate thumbnails with WP-CLI, just type $ wp media regenerate --yes in the command line.

The --yes flag answers yes to the confirmation message.

WP-CLI documentation