WordPress WP-CLI 2 cheatsheet
WordPress WP-CLI 2: Content and options
9 common WordPress WP-CLI 2 tasks.
Show posts with their status.
Create and publish a post.
wp post create --post_title="Hello" --post_status=publish
Print the site URL stored in the options table.
Change the site title stored in the options table.
wp option update blogname "New Site Title"
Regenerate rewrite rules, which fixes most pages that return 404 after a change.
Flush the WordPress object cache.
Delete all cached transient values.
wp transient delete --all
Run all WP-Cron events that are due now.
wp cron event run --due-now
Set WP_DEBUG to true in wp-config.php.
wp config set WP_DEBUG true --raw