wp-cli – search replace URL
wp search-replace --skip-columns=guid --skip-tables=wp_users,wp_usermeta 'original-domain.com' 'new-domain.com'
# or test/count first with --dry-run
wp search-replace --skip-columns=guid --skip-tables=wp_users,wp_usermeta 'original-domain.com' 'new-domain.com' --dry-run