mw dev mediawiki exec
Releasev0.35.0 · cfeceb67
mw dev mediawiki exec [flags] [command...]Runs a command in the MediaWiki container with the MediaWiki source directory as its working directory. Pass the command and its arguments after --; use --user to select the container user.
Options
Section titled “Options”Global options
Section titled “Global options”Examples
Section titled “Examples”mw dev mediawiki exec bash # Run bash as your system usermw dev mediawiki exec --user root -- bash # Run bash as rootmw dev mediawiki exec -- composer phpunit:unit # Run a composer command (php unit tests)mw dev mediawiki exec -- composer phpunit tests/phpunit/unit/includes/xml/XmlTest.php # Run a single testmw dev mediawiki exec -- MW_DB=other composer phpunit tests/phpunit/unit/includes/xml/XmlTest.php # Run a single test for another databasemw dev mediawiki exec -- php maintenance/run.php update --quick # Run a MediaWiki maintenance scriptmw dev mediawiki exec -- tail -f /var/log/mediawiki/debug.log # Follow the MediaWiki debug log fileSee also
Section titled “See also”Page views: —Sessions: —