Update Plugins CLI

Administration tools ::: tool_updatepluginscli
Maintained by Adam Jenkins, Ponlawat Weerapanpisit
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. Can override $CFG->disableupdateautodeploy = true;
Latest release:
19 downloads
1 fans
Current versions available: 1

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.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Adam Jenkins (Lead maintainer)
Ponlawat Weerapanpisit
Please login to view contributors details and/or to contact them

Comments

Show comments
Please login to post comments