wp media regenerate

Regenerates thumbnails for one or more attachments.