WP CLI – Change Blog Domain

If you are changing the domain of a WordPress blog, for development purposes or just moving to a new domain, there is a simple way to achieve this using WP CLI (WordPress Command line Interface). Instead of having to rely on a database command to update all references of the WordPress domain name, there is a simple command one can issue to update all the instances of the domain name.

You can read about all the options and global parameters here.