Complete the code to export the WordPress database using WP-CLI.
wp db export [1].sqlThe command wp db export backup.sql exports the database to a file named backup.sql.
Complete the command to import a database dump into WordPress using WP-CLI.
wp db import [1].sql
The command wp db import backup.sql imports the database from the file backup.sql.
Fix the error in the WP-CLI command to search and replace URLs during migration.
wp search-replace '[1]' '[2]' --skip-columns=guid
The first argument should be the old URL to replace it with the new URL.
Fill both blanks to correctly update URLs during migration using WP-CLI.
wp search-replace '[1]' '[2]' --skip-columns=[3]
The command replaces the old site URL with the new one and skips the 'guid' column to avoid breaking links.
Fill all three blanks to create a WP-CLI command that exports the database, imports it, and updates URLs during migration.
wp db export [1].sql && wp db import [2].sql && wp search-replace '[3]' 'http://newsite.com' --skip-columns=guid
This sequence exports the database to 'backup.sql', imports it back, and replaces the old URL with the new one, skipping the 'guid' column.