Created
April 21, 2020 06:23
-
-
Save wptraining/5d7a52e61b83ff5638e0b283b831ec0f to your computer and use it in GitHub Desktop.
Things you can do with wp-cli
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
| # Check number of times string will be replaced | |
| wp search-replace "http://olddomain.com" "http://newdomain" --dry-run | |
| # Replace old domain with new domain | |
| wp search-replace "http://olddomain.com" "http://newdomain.com" | |
| # Update URL to https | |
| wp search-replace "http://example.com" "https://example.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment