Skip to content

📰 Tips on Cloning WordPress

wordpressphpwp-cli
  • Test first to see what you're going to do: always run the commands with --dry-run first.

  • Make sure to update old to new domain. The following command is a bit slower than argument-less alternative, but will use PHP and should give you better results.

    bash
    wp-cli search-replace olddomain.com newdomain.com --precise --skip-columns=guid
  • Update all paths to your new WordPress root for all plugins that do store such constant.