These commands will install multiple dummy sites in a WordPress Multisite environment.
I wrote this to easily create an environment to work on https://core.trac.wordpress.org/ticket/15317.
In the terminal, inside your WordPress directory: simply copy, paste, and run the one-line command.
You can also add it to a location available in your $PATH
and invoke the script from the shell.
The easiest way to use this with WP-CLI is to include it in your commands directory and require it via config.
You may also choose to add the file to your local install and run this command, substituting your number of sites for {number}
:
wp --require=wp-multisite-create-dummy-sites.php multisite install {number}