{"id":15960920,"url":"https://github.com/cxuesong/psmwupdater","last_synced_at":"2026-05-04T21:32:15.685Z","repository":{"id":40900845,"uuid":"228168936","full_name":"CXuesong/PSMWUpdater","owner":"CXuesong","description":"🌻🚀 Provides helper cmdlets for upgrading MediaWiki extensions (and skins) in PowerShell on any OS.","archived":false,"fork":false,"pushed_at":"2022-12-08T06:27:58.000Z","size":109,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T18:09:49.605Z","etag":null,"topics":["mediawiki","mediawiki-extension","mediawiki-update","powershell"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CXuesong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-15T10:52:47.000Z","updated_at":"2020-03-29T14:31:35.000Z","dependencies_parsed_at":"2023-01-24T16:00:26.053Z","dependency_job_id":null,"html_url":"https://github.com/CXuesong/PSMWUpdater","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CXuesong/PSMWUpdater","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CXuesong%2FPSMWUpdater","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CXuesong%2FPSMWUpdater/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CXuesong%2FPSMWUpdater/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CXuesong%2FPSMWUpdater/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CXuesong","download_url":"https://codeload.github.com/CXuesong/PSMWUpdater/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CXuesong%2FPSMWUpdater/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32625976,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mediawiki","mediawiki-extension","mediawiki-update","powershell"],"created_at":"2024-10-07T15:22:39.183Z","updated_at":"2026-05-04T21:32:15.666Z","avatar_url":"https://github.com/CXuesong.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PowerShell Gallery](https://img.shields.io/powershellgallery/v/PSMWUpdater?style=flat-square)](https://www.powershellgallery.com/packages/PSMWUpdater/) | [![Gitter](https://badges.gitter.im/CXuesong/PSMWUpdater.svg)](https://gitter.im/CXuesong/PSMWUpdater?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\n# PSMWUpdater\n\nThis PowerShell Core (PS 6+) Module provides helper cmdlets helping you to upgrade MediaWiki extensions (including skins). (Sorry, no support for updating MediaWiki itself, for now.)\n\nPowerShell Gallery: [PSMWUpdater](https://www.powershellgallery.com/packages/PSMWUpdater/) ![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/PSMWUpdater?style=flat-square)\n\nIf you come across any problem using this PowerShell Module, please open an issue or join the chat on gitter.\n\n## Usage\n\nYou need to install PowerShell Core (`pwsh`) to use this module. See [Installing various versions of PowerShell#PowerShell Core](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell?view=powershell-6#powershell-core).\n\nInstall/Update this module with\n\n```powershell\nPS\u003e Install-Module -Name PSMWUpdater\n# OR\nPS\u003e Update-Module -Name PSMWUpdater\n```\n\nThen import the module\n\n```powershell\nPS\u003e Import-Module PSMWUpdater\n```\n\nIf there is no further error shown, you are now good to go.\n\nYou can always use the following command to explore the module and its cmdlets. It provides the most detailed explanations and samples.\n\n```powershell\n# Show all cmdlets\nPS\u003e Get-Command -Module PSMWUpdater\n# Show help for a cmdlet\nPS\u003e Help Get-MwExtension\n```\n\n### Quick recipe\n\nIf you just want to get started downloading all the latest extensions really fast, try out the following one-liners:\n\n```powershell\n# Donwload tar file for Vector skin and Echo extension on latest REL branch\nPS\u003e Get-MwExtensionBranch Vector, Echo | % { wget $_.Url }\n# Download tar files for all the latest REL branch of extensions (and skins) referred in LocalSettings.php\nPS\u003e Get-MwExtension -LocalSettingsPath X:\\mediawiki-1.33.0\\LocalSettings.php -BareName | Get-MwExtensionBranch | % { wget $_.Url }\n# Download tar files for all the MASTER branch of extensions (and skins) that exist in the MediaWiki installation directory \nPS\u003e Get-MwExtension -InstallationPath X:\\mediawiki-1.33.0\\ -BareName | Get-MwExtensionBranch -Branch master | % { wget $_.Url }\n# Download tar files for all the REL1_34 branch of extensions (excluding skins) that exist in the MediaWiki installation directory \nPS\u003e Get-MwExtension -InstallationPath X:\\mediawiki-1.33.0\\ -Type Extension -BareName | Get-MwExtensionBranch -Branch REL1_34 | % { wget $_.Url }\n```\n\nThen you can just extract the tar files and place them in the suitable folders. Don't forget to run `update.php` after updating the extensions.\n\n### Query for extensions and skins\n\nYou may query for your current installed extension and skins with `Get-MwExtension`. For extensions downloaded from MediaWiki [`Special:ExtensionDistributor`](https://www.mediawiki.org/wiki/Special:ExtensionDistributor), you can see the branch and (SVC) revision information.\n\n```powershell\nPS\u003e Get-MwExtension /mnt/x/mediawiki-1.33.0/\n\nName                           Branch   Version  Revision RevisionTime              LocalPath\n----                           ------   -------  -------- ------------              ---------\nExtension:CategoryTree                                                              /mnt/x/mediawiki-1.33.0/extensions/CategoryTree\nExtension:Cite                          1.0.0                                       /mnt/x/mediawiki-1.33.0/extensions/Cite\nExtension:CiteThisPage                                                              /mnt/x/mediawiki-1.33.0/extensions/CiteThisPage\nExtension:CodeEditor                                                                /mnt/x/mediawiki-1.33.0/extensions/CodeEditor\nExtension:ConfirmEdit                   1.6.0                                       /mnt/x/mediawiki-1.33.0/extensions/ConfirmEdit\nExtension:Gadgets                                                                   /mnt/x/mediawiki-1.33.0/extensions/Gadgets\nExtension:ImageMap                                                                  /mnt/x/mediawiki-1.33.0/extensions/ImageMap\nExtension:InputBox                      0.3.0                                       /mnt/x/mediawiki-1.33.0/extensions/InputBox\nExtension:intersection         REL1_33  1.7.0    05edc37  2019/6/17 PM7:24:11       /mnt/x/mediawiki-1.33.0/extensions/intersection\nExtension:Interwiki                     3.1 201…                                    /mnt/x/mediawiki-1.33.0/extensions/Interwiki\nExtension:LocalisationUpdate            1.4.0                                       /mnt/x/mediawiki-1.33.0/extensions/LocalisationUpdate\nExtension:MultimediaViewer                                                          /mnt/x/mediawiki-1.33.0/extensions/MultimediaViewer\nExtension:Nuke                          1.3.0                                       /mnt/x/mediawiki-1.33.0/extensions/Nuke\nExtension:OATHAuth                      0.2.2                                       /mnt/x/mediawiki-1.33.0/extensions/OATHAuth\nExtension:ParserFunctions               1.6.0                                       /mnt/x/mediawiki-1.33.0/extensions/ParserFunctions\nExtension:PdfHandler                                                                /mnt/x/mediawiki-1.33.0/extensions/PdfHandler\nExtension:Poem                                                                      /mnt/x/mediawiki-1.33.0/extensions/Poem\nExtension:Renameuser                                                                /mnt/x/mediawiki-1.33.0/extensions/Renameuser\nExtension:Replace Text                  1.4.1                                       /mnt/x/mediawiki-1.33.0/extensions/ReplaceText\nExtension:SpamBlacklist                                                             /mnt/x/mediawiki-1.33.0/extensions/SpamBlacklist\nExtension:SyntaxHighlight               2.0                                         /mnt/x/mediawiki-1.33.0/extensions/SyntaxHighlight_GeSHi\nExtension:TitleBlacklist                1.5.0                                       /mnt/x/mediawiki-1.33.0/extensions/TitleBlacklist\nExtension:WikiEditor                    0.5.2                                       /mnt/x/mediawiki-1.33.0/extensions/WikiEditor\nSkin:MonoBook                                                                       /mnt/x/mediawiki-1.33.0/skins/MonoBook\nSkin:Timeless                           0.8.1                                       /mnt/x/mediawiki-1.33.0/skins/Timeless\nSkin:Vector                                                                         /mnt/x/mediawiki-1.33.0/skins/Vector\n```\n\nYou may also query for a list of known extensions from [WMF MediaWiki site](https://www.mediawiki.org/).\n\n```powershell\nPS\u003e Get-MwExtension\n\nName\n----\nExtension:3D\nExtension:AJAXPoll\nExtension:AbsenteeLandlord\nExtension:AbuseFilter\nExtension:AbuseFilterBypass\nExtension:AccessControl\nExtension:AccountInfo\nExtension:ActiveAbstract\nExtension:AdManager\nExtension:AddHTMLMetaAndTitle\nExtension:AddMessages\nExtension:AddPersonalUrls\nExtension:AddThis\nExtension:AdminLinks\nExtension:AdvancedMeta\nExtension:AdvancedSearch\nExtension:AkismetKlik\nExtension:AllTimeZones\n...\n```\n\nYou can append `-Type Extension` or `-Type Skin` to filter for the extensions or skins only.\n\n### Query for extension branches\n\nYou can query for the extension branches to retreive their download URL. Note that extension names are case-sensitive.\n\n```powershell\nPS\u003e Get-MwExtensionBranch -Name Vector, Echo\n\nExtensionName  BranchName Url\n-------------  ---------- ---\nExtension:Echo REL1_33    https://extdist.wmflabs.org/dist/extensions/Echo-REL1_33-f106596.tar.gz\nSkin:Vector    REL1_33    https://extdist.wmflabs.org/dist/skins/Vector-REL1_33-878c1e8.tar.gz\n```\n\nIf there is ambiguity on whether the extension is a skin, prefix the name in `-Name` parameter with `Extension:` or `Skin:`.\n\nYou can ask for a specific branch instead of latest `REL` branch.\n\n```powershell\nPS\u003e Get-MwExtensionBranch -Name Vector, Echo -Branch master\n\nExtensionName  BranchName Url\n-------------  ---------- ---\nExtension:Echo master     https://extdist.wmflabs.org/dist/extensions/Echo-master-4c991af.tar.gz\nSkin:Vector    master     https://extdist.wmflabs.org/dist/skins/Vector-master-bf365aa.tar.gz\n```\n\nYou can also ask for all the known branches.\n\n```powershell\nPS\u003e Get-MwExtensionBranch -Name Vector, Echo -AllBranches\n\nExtensionName  BranchName Url\n-------------  ---------- ---\nExtension:Echo REL1_31    https://extdist.wmflabs.org/dist/extensions/Echo-REL1_31-b56ec9b.tar.gz\nExtension:Echo REL1_32    https://extdist.wmflabs.org/dist/extensions/Echo-REL1_32-335389f.tar.gz\nExtension:Echo REL1_33    https://extdist.wmflabs.org/dist/extensions/Echo-REL1_33-f106596.tar.gz\nExtension:Echo master     https://extdist.wmflabs.org/dist/extensions/Echo-master-4c991af.tar.gz\nExtension:Echo source     https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo.git\nSkin:Vector    REL1_31    https://extdist.wmflabs.org/dist/skins/Vector-REL1_31-f0327dc.tar.gz\nSkin:Vector    REL1_32    https://extdist.wmflabs.org/dist/skins/Vector-REL1_32-d3ed21a.tar.gz\nSkin:Vector    REL1_33    https://extdist.wmflabs.org/dist/skins/Vector-REL1_33-878c1e8.tar.gz\nSkin:Vector    master     https://extdist.wmflabs.org/dist/skins/Vector-master-bf365aa.tar.gz\nSkin:Vector    source     https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git\n```\n\nThen you can use `Invoke-WebRequest` or `wget` to download the `tar.gz` files.\n\n```powershell\nPS\u003e Get-MwExtensionBranch -Name Vector, Echo | % { wget $_.Url }\n```\n\nOr use the following expression to download all the latest REL extensions for your local MediaWiki installation.\n\n```powershell\nPS\u003e Get-MwExtension ./mediawiki-1.33.0/ -NoEmpty -BareName | Get-MwExtensionBranch\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxuesong%2Fpsmwupdater","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcxuesong%2Fpsmwupdater","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcxuesong%2Fpsmwupdater/lists"}