script
canasta maintenance script¶
Run maintenance scripts
Synopsis¶
Run a MediaWiki core maintenance script inside the web container.
With no arguments, lists all available maintenance scripts. With one argument (a quoted script name and optional arguments), runs that script. The script name is relative to the maintenance/ directory.
Use --wiki to target a specific wiki in a farm.
Examples¶
# List all available maintenance scripts
canasta maintenance script -i myinstance
# Run rebuildrecentchanges.php
canasta maintenance script "rebuildrecentchanges.php" -i myinstance
# Run a script with arguments
canasta maintenance script "importDump.php /path/to/dump.xml" -i myinstance
# Run a script for a specific wiki in a farm
canasta maintenance script "rebuildrecentchanges.php" -i myinstance --wiki=docs
Options¶
| Flag | Shorthand | Description | Default |
|---|---|---|---|
--help |
-h |
help for script |
Options inherited from parent commands¶
| Flag | Shorthand | Description | Default |
|---|---|---|---|
--all |
`` | Run for all wikis in the farm | |
--id |
-i |
Canasta instance ID | |
--verbose |
-v |
Verbose output | |
--wiki |
-w |
Wiki ID to run maintenance on |
SEE ALSO¶
- canasta maintenance - Use to run update and other maintenance scripts