wp_cli wordpress DB書き換え サーバ名変更
DBサイズが大きいときは wp-cli の search-replace を使ったほうがよい
Search and Replace for WordPress Databases Scriptはメモリ不足になる場合があった
マルチサイト
By default, the command uses tables registered to the $wpdb object. On multisite, this will just be the tables for the current site unless --network is specified.
https://developer.wordpress.org/cli/commands/search-replace/
--networkオプションをつける wp search-replace "old.example.com" "new.example.com" --network