This command line given in DEVELOPERS.md doesn't work on a Windows 10 host:
docker-compose exec mediawiki \ bash -c 'php maintenance/install.php \ --server $MW_SERVER \ --scriptpath=$MW_SCRIPTPATH \ --dbtype $MW_DBTYPE \ --dbpath $MW_DBPATH \ --lang $MW_LANG \ --pass $MW_PASS \ $MW_SITENAME $MW_USER'
I've tried replacing the backslashes with backticks for line continuations in PowerShell, but no combination I've tried works out so far. Additionally the variables seem to get interpolated early in the shell, and I'm having trouble figuring out how to get them correctly tuned to get interpolated in the bash command only with no luck so far.
Workaround:
Copy-paste the bash command line (minus the "docker-compose" line) into a file install.sh, eg:
#!/bin/sh bash -c 'php maintenance/install.php \ --server $MW_SERVER \ --scriptpath=$MW_SCRIPTPATH \ --dbtype $MW_DBTYPE \ --dbpath $MW_DBPATH \ --lang $MW_LANG \ --pass $MW_PASS \ $MW_SITENAME $MW_USER'
and then run from the Windows shell:
docker-compose exec mediawiki ./install.sh