Create a development environment
Releasev0.35.0 · cfeceb67
Watch it in action
Install the CLI and Docker Engine 19.03 or newer (API 1.40+) with Docker Compose v2 first. Make sure docker info works for your user.
Create MediaWiki and a database
Section titled “Create MediaWiki and a database”Start the setup wizard:
mw dev mediawiki createChoose a local port, a MediaWiki checkout and cloning options. You can use an existing checkout or let the wizard fetch one. For an existing LocalSettings.php, read the configuration guide before reusing it.
Start MySQL and install the wiki:
mw dev mysql createmw dev mediawiki install --dbtype=mysqlmw dev compose psUse the wiki credentials printed by the installer to sign into MediaWiki. They are separate from the gateway login.
Open the wiki
Section titled “Open the wiki”The default port is 8080. Open http://default.mediawiki.local.wmftest.net:8080/wiki/Main_Page, or use http://localhost:8080/proxy/default/wiki/Main_Page through the gateway. Substitute the port and database name you selected.
Generate a gateway login link:
mw dev traefik credentialsOpen its Login link, then visit http://localhost:8080/proxy/dashboard/ to find the running services. The gateway guide explains login sessions, service URLs and tunnels.
Add code and inspect services
Section titled “Add code and inspect services”mw dev mediawiki get-code --extension VisualEditormw dev mediawiki get-code --skin MinervaNeueFetching an extension or skin does not enable it. Configure it in your checkout’s LocalSettings.php and run any required MediaWiki updates.
Use mw dev SERVICE --help for service commands. See the existing service interaction, MediaWiki and database guides for more workflows.
Use contexts for separate environments, or change the HTTP port of an existing environment.
Read this guide offline with mw help guides dev setup.
Adapted from MediaWiki.org under CC BY-SA 4.0; see the linked page history for contributors.
Page views: —Sessions: —