Hi all,
Have you ever encountered a tool that can batch upgrade extensions?
If not, I plan to develop tool that have this capability.
Batch upgrade extensions tool


That sounds ambitious (not that that’s necessarily a bad thing )
There are tools for specific purposes (such as extension registration) but not a generic “upgrade tool”.

I think this can help operator who do not intend to use git to manage version but feel a headache when upgrading MW.

Oh, you are talking about a script that upgrades the site (replaces the code with a newer version etc)? Sorry, I thought you were talking about something more like Drupal’s module upgrader.
Vagrant’s git-update
command does that; I’m not aware of other tools but then I’m not really knowledgeable in that area.

I finished this development. This script works well for me, but it still has to be tested by everyone.

If this script on the way in the use of the problem or you have any ideas, please leave a message below or go to Github issues.

You’ll probably want to give some attention to the file permissions being applied. Also, remember that if you upgrade extensions, you might have to run the ./maintenance/update.php script. You might want to encourage users to do so.

Some extensions need to run the update.php
, some extensions do not. mwExtUpgrader is mainly to replace the old file as the new file. Run update.php
script this thing should be handed over to the operator to run manually.
But thank you for your opinion, I plan to prompt people to run update.php
script after mwExtUpgrader script has been successfully upgraded.

Yes, I should check the permissions of the file being applied.

When the script can be used for production, can I publicize this script? For example, publicize here.

There is https://www.npmjs.com/package/mediawiki-extension that I have tried in the past.
As I am nowadays only using git, it’s easy to write a script that goes over the git clones and updates them, such as:
- https://github.com/wikimedia/translatewiki/blob/master/bin/wikiupdate
- https://github.com/CSCfi/Kielipankki-palvelut/blob/master/servers/sanat/roles/mediawiki/files/co_repos
These don’t run update.php, that’s either done manually or part of a larger script.

It’s a good idea to update core and extensions with git. But many people are updated one by one via ExtensionDistributor, like me.

Eventually, something like this should be bundled with MediaWiki I suppose? Filed T187128 so there is a place to discuss and collect the existing tools.