MainWP Community

API support for adding new sites

Hi,

Is it possible to add new sites using API/WP-CLI, has anyone done it?
We need to automate adding new sites without human interference.

Best Regards

Hi Lauri, please see here: https://gist.github.com/bogdan-mainwp/8a5e9af2e10c768e12cc547d8416889c

Let me know if this is what you are looking for.

Out of interest, what are the steps to use this?