Moodle Plugins directory: Update Plugins CLI | Moodle.org

Update Plugins CLI
A CLI tool for downloading and installing plugin updates from the Moodle plugins directory using the command line. Can be run as part of an update script to keep plugins up to date without using the web interface or setting up git submodules etc.
This plugin makes it possible to do the admin tasks of "updateautodeploy" that would normally be done via the plugins overview page in the web interface. By making it usable via the CLI, it is possible to update plugins without a user account on the site. Also, it makes it possible to script updates.
The tool can override $CFG->disableupdateautodeploy = true; by passing the "--override-config" flag at runtime.
To fetch updates (similar in function to clicking "Check for updates" in the web interface)
php PATH_TO_MOODLE/tool/updatepluginscli/cli/fetchupdates.php
To download updates (similar in function to clicking "Install updates" in the web interface)
php PATH_TO_MOODLE/tool/updatepluginscli/cli/downloadupdates.php
After which, the admin can either visit the notifications page to finish the plugin installs or run the following command to upgrade the database via the CLI.
php PATH_TO_MOODLE/admin/cli/upgrade.php
For more information, see the README on the github page.
Comments