Created
February 23, 2021 19:35
-
-
Save adamgen/87ea6bf57828083d4d087d34dc988d8f to your computer and use it in GitHub Desktop.
Setting up a freshly cloned WP instance with CLI commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp search-replace http://origin.com http://destination.com --all-tables | |
wp option update home http://destination.com | |
wp option update siteurl http://destination.com | |
# Make sure that you have write permissions first | |
wp rewrite flush |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment