Cli/ref/mw docker mediawiki mwscript

< Cli | ref

mw docker mediawiki mwscript

edit

Executes a MediaWiki script using run.php in the MediaWiki container

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

Examples

edit
mwscript                              # Runs run.php and outputs its help
mwscript update                       # Runs the update script on the default wiki
mwscript update -- --wiki two         # Runs the update script on the two wiki
mwscript MW_DB=three update           # Runs the update script on the three wiki

Options

edit
  -u, --user string   User to run as, defaults to current OS user uid:gid (default "0:0")

Options inherited from parent commands

edit
  -c, --context string   The context to use (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

SEE ALSO

edit