Manual:checkDependencies.php
Appearance
MediaWiki version: | ≥ 1.34 |
MediaWiki file: checkDependencies.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
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/checkDependencies.php [ --extensions| --skins| --json| --dev ]
Output human-readable format
[edit]Terminal
$ php maintenance/checkDependencies.php --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/checkDependencies.php --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" ] } } }