Skip to content

Instantly share code, notes, and snippets.

@jacobmc
Last active February 22, 2022 02:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacobmc/27cd950c78f192d7ba00d022942f2aa4 to your computer and use it in GitHub Desktop.
Save jacobmc/27cd950c78f192d7ba00d022942f2aa4 to your computer and use it in GitHub Desktop.
Bedrock Migration CLI Commands
# Commands for updating the WordPress database for a migration
# from a flat WordPress install to a Bedrock install
wp search-replace /wp-content /app --all-tables
wp search-replace /wp-admin /wp/wp-admin --all-tables
wp search-replace /wp-login.php /wp/wp-login.php --all-tables
wp search-replace /xmlrpc.php /wp/xmlrpc.php --all-tables
# Chained Commands
wp search-replace /wp-content /app --all-tables && wp search-replace /wp-admin /wp/wp-admin --all-tables && wp search-replace /wp-login.php /wp/wp-login.php --all-tables && wp search-replace /xmlrpc.php /wp/xmlrpc.php --all-tables
@justingivens
Copy link

Line 3, should NOT include /web/ as it should be:

wp search-replace /wp-content /app --all-tables

.htaccess handles the web as needed.

@jacobmc
Copy link
Author

jacobmc commented Oct 22, 2020

Line 3, should NOT include /web/ as it should be:

wp search-replace /wp-content /app --all-tables

.htaccess handles the web as needed.

Thanks! It's been updated.

@justingivens
Copy link

I just realized that the #Chained Command wasn't updated the change.

@jacobmc
Copy link
Author

jacobmc commented Nov 11, 2021

The #Chained command has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment