The issue is that core files need to be edited. One can probably make a script to do this, but, that's not where my skills are ...
Also, they are busy re-creating the engine for V4 using wp-cli ... so will have to see how that goes. I am personally not using EE anymore as I have switched to docker, and EE does not play well in that environment ...