Cli/ref/mw docker mediawiki exec

mw docker mediawiki exec
Executes a command in the MediaWiki container

mw docker mediawiki exec [flags] [command...]

Examples
exec bash                                              # Run bash as your system user exec --user root -- bash                               # Run bash as root exec -- composer phpunit:unit                          # Run a composer command (php unit tests) exec -- composer phpunit tests/phpunit/unit/includes/XmlTest.php                # Run a single test exec -- MW_DB=other composer phpunit tests/phpunit/unit/includes/XmlTest.php    # Run a single test for another database exec -- php maintenance/update.php --quick             # Run a MediaWiki maintenance script exec -- tail -f /var/log/mediawiki/debug.log           # Follow the MediaWiki debug log file

Options
-u, --user string  User to run as, defaults to current OS user uid:gid (default &quot;1000:1000&quot;)

Options inherited from parent commands
--help            Help for this command --no-interaction  Do not ask any interactive questions -v, --verbose count   Increase output verbosity. Example: --verbose=2 or -vv