canasta maintenance script
From Canasta Wiki
canasta > maintenance > 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 or more arguments, runs the specified script. The script name is relative to the maintenance/ directory.
Flags (-i, --wiki) must come before the script name. Everything after the script name is treated as script arguments — no quotes needed.
In a wiki farm, runs on all wikis by default. Use --wiki to target a specific wiki.
canasta maintenance script [flags] [scriptname.php [args...]]
Examples
# List all available maintenance scripts
canasta maintenance script -i myinstance
# Run rebuildrecentchanges.php
canasta maintenance script -i myinstance rebuildrecentchanges.php
# Run a script with arguments
canasta maintenance script -i myinstance importDump.php /path/to/dump.xml
# Run a script for a specific wiki in a farm
canasta maintenance script -i myinstance --wiki=docs rebuildrecentchanges.php
Flags
| Flag | Shorthand | Description | Default | Required |
|---|---|---|---|---|
--help |
-h |
help for script | ||
--wiki |
-w |
Wiki ID to run maintenance on | all wikis | |
--id |
-i |
Canasta instance ID | instance associated with current directory | |
--verbose |
-v |
Verbose output |