One command changes every URL in a WordPress database, and one careless argument changes email addresses and GUIDs too. A careful order for domain changes, with the cases search-replace misses.
How to clone a live WordPress site to a staging subdomain with WP-CLI, rewrite URLs safely, keep search engines out and move changes back to production.