Create WordPress Multisite Instance Programmatically

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?