Skip to content

mw dev

Releasev0.35.0 · cfeceb67

Build a local MediaWiki environment with Docker Compose, then add the services you need.

Getting started

Install Docker with Compose and make sure docker info works. Create MediaWiki, add MySQL, then install the wiki:

Terminal window
mw dev mediawiki create
mw dev mysql create
mw dev mediawiki install --dbtype=mysql

The setup wizard lets you choose a checkout and local port. For a separate environment, use --context NAME.

Read the setup guide →

Working with services

Read the service workflow guide for the shared patterns.

Choose a service in the sidebar for its overview and commands. Many services share create, start, stop, logs and image configuration commands; each service's reference lists what it supports.

Managing your environment

Use stop and start to pause and resume containers, or compose to work directly with Docker Compose.

For repeatable setups, recipes apply a YAML definition of an environment.

All environment commands and options

Develop MediaWiki and supporting services using Docker Compose. Use --context NAME for a separate environment, or set CONTEXT in your shell. mw docker remains an alias for existing scripts.

Start with mw help guides dev setup. Read mw help guides dev contexts and mw help guides dev ports for environment configuration, or mw help guides dev services for workflows across services. Use --web on a guide command to read it on MediaWiki.org.

  • mw dev hosts — Interact with your system hosts file
  • mw dev recipe — Apply a YAML recipe to set up a complete dev environment
  • mw dev tunnel — Connect to the development environment through an optional tunnel
  • mw dev where — Outputs the path of the working directory for the environment
-c, --context <string>
Development context to use (overrides CONTEXT) Default: default.
--help
Help for this command
--no-interaction
Do not ask any interactive questions
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
mw dev mediawiki create
mw dev mysql create
mw dev mediawiki install --dbtype=mysql
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.