Skip to content

Instantly share code, notes, and snippets.

@brianpurkiss
Created August 27, 2019 20:47
Show Gist options
  • Save brianpurkiss/713a5fac2da206bff7a4fc81cb24e90d to your computer and use it in GitHub Desktop.
Save brianpurkiss/713a5fac2da206bff7a4fc81cb24e90d to your computer and use it in GitHub Desktop.
Find and replace a domain (or text) through wp-cli for WordPress
wp search-replace "OLDDOMAIN" "NEWDOMAIN" --precise --skip-columns=guid,user_email --all-tables --skip-plugins --skip-themes --report-changed-only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment