Skip to content

Instantly share code, notes, and snippets.

@adamgen
Created February 23, 2021 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamgen/87ea6bf57828083d4d087d34dc988d8f to your computer and use it in GitHub Desktop.
Save adamgen/87ea6bf57828083d4d087d34dc988d8f to your computer and use it in GitHub Desktop.
Setting up a freshly cloned WP instance with CLI commands
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