Skip to content

Instantly share code, notes, and snippets.

@binodkalathil
Last active December 24, 2020 13:28
Show Gist options
  • Save binodkalathil/69a919bf38dfaea3b3fde233b5ad3547 to your computer and use it in GitHub Desktop.
Save binodkalathil/69a919bf38dfaea3b3fde233b5ad3547 to your computer and use it in GitHub Desktop.
WP DB import steps
wp db import <sql>
wp option get siteurl (get <example.com> from here)
wp search-replace <example.com> <example.local> --dry-run
wp search-replace <example.com> <example.local>
wp search-replace <example.com> <example.local> --all-tables --dry-run
wp search-replace <example.com> <example.local> --all-tables
wp cache flush
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment