Skip to content

mw dev mediawiki mwscript

Releasev0.35.0 · cfeceb67

mw dev mediawiki mwscript [flags] [script...] -- [script flags]

Runs a maintenance script through php maintenance/run.php in the MediaWiki container. Put script arguments after -- so they are passed to the maintenance script. Use --user to select the container user.

-u, --user <string>
User to run as, defaults to current OS user uid:gid Default: 1000:1000.
-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 mwscript # Runs run.php and outputs its help
mw dev mediawiki mwscript update # Runs the update script on the default wiki
mw dev mediawiki mwscript update -- --wiki two # Runs the update script on the two wiki
mw dev mediawiki mwscript MW_DB=three update # Runs the update script on the three wiki
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.