Setting the file. One moment.
Subchapter 18.7
references/search-replace.mdMarkdown995 BView on GitHub
wp search-replaceUse this file when migrating domains, switching http→https, or changing paths.
wp db exportwp search-replace OLD NEW --dry-run--all-tables-with-prefix if you need to include non-core tables with the WP prefixwp cache flushwp rewrite flushFor multisite, decide whether you’re replacing:
--url=...), or--network or iterating wp site list).Read:
multisite.md--dry-run--precise (slower but can be safer in complex cases)--skip-columns=... (avoid touching large/binary columns)--report-changed-onlyWP-CLI search-replace is designed to handle PHP serialized data, but you must still: