wp db query "UPDATE `wp_posts` SET `post_type` = 'new-cpt-post' WHERE `post_type` = 'old-cpt-post';"
Change post type
- Reset WordPress database
- Manually Extract a Single Site from a WordPress Multisite using wp-cli
- Allow Root from wp-cli 2.5
- Migrate a WordPress Website with UpdraftPlus for Free (without Migrator or UpdraftClone)
- Search and Replace with wp-cli
- Regenerate image sizes in WordPress
- Delete image sizes from WordPress
- Creating a new WordPress user from the command line with wp-cli
- Change post type
- Optimize WordPress images
- wp import backup.sql.gz
- Settings up a new WordPress install with wp-cli