WordPress Database Search and Replace with WP CLI

While working locally on a new site I realized that all of the image URLs were busted.  Super happy to test out using the WP CLI search-replace feature for the first time to find out it works great!

wp search-replace oldurl.com newurl.com

Back in the old days I would use plugins like the Search and Replace plugin for this sort of thing just to avoid having to login to phpMyAdmin.  Oh the days of GUIs 😉

Really enjoying working with WP CLI.  If you haven’t tried it out yet, check out our Treehouse course on Modern WordPress Workflow.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s