CLI:Canasta maintenance extension
canasta > maintenance > 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) must come before the extension name. Everything after the extension name is treated as the script and its arguments — no quotes needed.
Only extensions that are currently loaded (enabled) for the target wiki are shown and allowed to run. In a wiki farm, runs on all wikis by default. Use --wiki to target a specific wiki.
canasta maintenance extension [flags] [extension-name] [script.php [args...]]
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
Flags
| Flag | Shorthand | Description | Default | Required |
|---|---|---|---|---|
--help |
-h |
help for extension | ||
--wiki |
-w |
Wiki ID to run maintenance on | all wikis | |
--id |
-i |
Canasta instance ID | instance associated with current directory | |
--verbose |
-v |
Verbose output |