I would like to generate a number of posts and attach the same featured image to all posts.
wp post generate --count=20
wp post meta add <id> _thumbnail_id 215
But how can I run this two commands together? How can I retrieve the id of created post?