How to search and replace in your WordPress database with WP-CLI Change your website's address throughout your WordPress database, for example after changing domain or moving to https, safely using WP-CLI.