0

Our CI process sets up everything from scratch, including WordPress, and our WordPress is a multisite instance. Adding a site after the Multisite functionality has been setup is easy to do programatically, but the initial setup seems to need to be done manually.

Is there a way to setup the initial network tables without hitting install on the dashboard, maybe using WP-CLI or a build in method?

2

WP-CLI has a couple of commands to install Multisite (or convert a non-Multisite WP installation to Multisite):

Are either of those what you're looking for?

3
  • Yes this is perfect! Thank you! Aug 24 '19 at 15:49
  • Do I have to do a regular wp install before doing the multisite install? Aug 24 '19 at 15:51
  • If you've got a regular installation, you can use multisite-convert. If it's a new installation, you can use multisite-install and go directly to a multisite insulation.
    – Pat J
    Aug 25 '19 at 4:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.