Skip to content

Instantly share code, notes, and snippets.

@jacobmc
Last active February 22, 2022 02:19
Show Gist options
  • Select an option

  • Save jacobmc/27cd950c78f192d7ba00d022942f2aa4 to your computer and use it in GitHub Desktop.

Select an option

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
@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