Manual:checkDependencies.php
Appearance
MediaWiki version: | ≥ 1.34 |
MediaWiki file: checkDependencies.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.43.0 • 1.42.4 • 1.39.11 |
Classes: | CheckDependencies |
Details
[edit]checkDependencies.php is a maintenance script that checks dependencies for extensions and skins, mostly without loading them.
Options
[edit]Option | Description | Required |
---|---|---|
--extensions | Comma separated list of extensions to check | Optional |
--skins | Comma separated list of skins to check | Optional |
--json | Output in JSON | Optional |
--dev | Check development dependencies, too | Optional |
Usage
[edit]php maintenance/run.php checkDependencies [ --extensions| --skins| --json| --dev ]
In MediaWiki version 1.39.10 and earlier, you must invoke maintenance scripts using
php maintenance/scriptName.php
instead of php maintenance/run.php scriptName
.Output human-readable format
[edit]Terminal
$ php maintenance/run.php checkDependencies --extensions MobileFrontend,VisualEditor,WikiSEO,DiscussionTools Extensions ========== MobileFrontend: present (because: MobileFrontend) VisualEditor: present (because: VisualEditor,DiscussionTools) WikiSEO: missing (because: WikiSEO) DiscussionTools: present (because: DiscussionTools) Linter: present (because: DiscussionTools)
Output JSON
[edit]Terminal
$ php maintenance/run.php checkDependencies --extensions MobileFrontend,VisualEditor,WikiSEO,DiscussionTools --json { "extensions": { "MobileFrontend": { "status": "present", "why": [ "MobileFrontend" ] }, "VisualEditor": { "status": "present", "why": [ "VisualEditor", "DiscussionTools" ] }, "WikiSEO": { "status": "missing", "why": [ "WikiSEO" ] }, "DiscussionTools": { "status": "present", "why": [ "DiscussionTools" ] }, "Linter": { "status": "present", "why": [ "DiscussionTools" ] } } }