Bulk update published posts date randomly using wp-cli?

I see an option ([--post_date=post_date]) in wp-cli, but how can we use wp-cli to update all my published posts date randomly?

For example, I want all posts date changed randomly between 01-01-2021 to 01-01-2022, how can I do this using cli?

Topic wp-update-post wp-cli command-line date-time posts Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.