WordPress WP-CLI 2 · Database
Preview a URL change
Show how many replacements a search and replace would make, without changing anything.
wp search-replace 'http://old.example' 'https://new.example' --dry-run
Official WordPress WP-CLI 2 documentation