Use /cli/upgrade.php to install/upgrade plugins

Use /cli/upgrade.php to install/upgrade plugins

by Christos Savva -
Number of replies: 2

Hello,


I was wondering if its a good practice to use the /admin/cli/upgrade.php for just installing new plugins or upgrading existing plugins.


I have used it a couple of times and it seems to work, but I need a second opinion.


So is it OK or upgrade.php should be strictly used when upgrading Moodle Core?


Thank you

Average of ratings: -
In reply to Christos Savva

Re: Use /cli/upgrade.php to install/upgrade plugins

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

It doesn't matter... you get the same upgrade process whether running from the web interface or the command line. Take your pick.

The command line interface can be more reliable as it doesn't suffer from the time outs that you can get with the web version. 

Average of ratings: Useful (1)
In reply to Howard Miller

Re: Use /cli/upgrade.php to install/upgrade plugins

by Christos Savva -

Perfect, the timeouts was the exact reason I needed the cli upgrade.


Thank you for the confirmation, CLI it is then smile