For multisite only. Introduces a WP-CLI command for duplicating a blog on a network.
Install and activate as a normal plugin. Then in the command line, from your site's root directory, run wp help
. You should see duplicate
as a registered command, then you can continue.
wp plugin install https://github.com/trepmal/blog-duplicator/archive/master.zip --activate-network
Duplicate your current site:
wp duplicate <new-site-slug>
Duplicate a subsite on the network:
wp duplicate <new-site-slug> --url=domain.tld/somesite
For a little extra output add --verbose