extension
canasta maintenance extension¶
Run extension maintenance scripts
Synopsis¶
Run maintenance scripts provided by loaded MediaWiki extensions.
With no arguments, lists all loaded extensions that have a maintenance/ directory. With one argument (extension name), lists available maintenance scripts for that extension. With two or more arguments (extension name, script name, and optional script arguments), runs the specified script.
Flags (-i, --wiki, --all) must come before the extension name. Everything after the extension name is treated as the script and its arguments — no quotes are needed.
Only extensions that are currently loaded (enabled) for the target wiki are shown and allowed to run. In a wiki farm, use --wiki to target a specific wiki, or --all to run on every wiki. If there is only one wiki, it is selected automatically.
Examples¶
# List loaded extensions with maintenance scripts
canasta maintenance extension -i myinstance
# List maintenance scripts for an extension
canasta maintenance extension -i myinstance SemanticMediaWiki
# Run an extension maintenance script
canasta maintenance extension -i myinstance SemanticMediaWiki rebuildData.php
# Run with script arguments (no quotes needed)
canasta maintenance extension -i myinstance SemanticMediaWiki rebuildData.php -s 1000 -e 2000
# Run for a specific wiki in a farm
canasta maintenance extension -i myinstance --wiki=docs CirrusSearch UpdateSearchIndexConfig.php
# Run for all wikis
canasta maintenance extension -i myinstance --all SemanticMediaWiki rebuildData.php
Options¶
| Flag | Shorthand | Description | Default |
|---|---|---|---|
--help |
-h |
help for extension |
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