Use The Command Line From Moosh To Perform Your Most Common Moodle Tasks

5481
moosh command line tool moodle

If you are a part of a large organization or institution that has any type of regular academic cycle, you know how tedious and time consuming setting up courses can be. Even if you’re working with a small portfolio of courses, the administration of these courses can be a heavy weight to lift and consume incredible amounts of energy.

WIRIS

Tomasz Muras also had these issues, but unlike you or I, he took time to do something about it and created Moosh. Inspired by Drush (a similar tool for the Drupal CMS), Moosh is “A command line tool that will help you to perform some of your most common Moodle tasks.” Tomasz decided to create Moosh when he realized

how much time I waste each time I debug/test some Moodle issue and need to setup my environment.

If the reviews on Moosh can be believed, this tool literally has the potential to save you hundreds of hours of time.

Tomasz, has provided a few tutorials about how to use Moosh, that can be found here. This is an example:

However, while there are 32 contributors to Moosh on github, unless you are super comfortable with the back end of Moodle, and technology in general, I’d leave this one to your administration team.

I’ve included a full listing of the command line tools available in Moosh below:

  • activity-add : block-add
    • activity-add
    • activity-delete
    • apache-parse-extendedlog
    • apache-parse-missing-files
    • apache-parse-perflog
    • audit-passwords
    • auth-manage
    • block-add
  • block-manage : cache-clear
    • block-manage
    • category-create
    • category-export
    • category-import
    • category-list
    • category-move
    • chkdatadir
    • cache-clear
  • code-check : course-backup
    • code-check
    • cohort-create
    • cohort-enrol
    • cohort-unenrol
    • config-get
    • config-plugins
    • config-set
    • course-backup
  • course-create : course-reset
    • course-create
    • course-config-set
    • course-enrol
    • course-enrolbyname
    • course-enrolleduser
    • course-enableselfenrol
    • course-list
    • course-reset
  • course-restore : file-delete
    • course-restore
    • course-unenrol
    • data-stats
    • debug-off
    • debug-on
    • dev-versionbump
    • download-moodle
    • file-delete
  • file-list : generate-filepicker
    • file-list
    • file-path
    • file-upload
    • filter-set
    • form-add
    • forum-newdiscussion
    • generate-cfg
    • generate-filepicker
  • generate-form : generate-qtype
    • generate-form
    • generate-gradereport
    • generate-gradeexport
    • generate-lang
    • generate-local
    • generate-messageoutput
    • generate-module
    • generate-qtype
  • gradebook-import : module-manage
    • gradebook-import
    • info
    • info-plugins
    • languages-update
    • maintenance-off
    • maintenance-on
    • module-config
    • module-manage
  • php-eval : user-export
    • php-eval
    • plugin-install
    • plugin-list
    • plugin-uninstall
    • question-import
    • user-create
    • user-delete
    • user-export
  • user-getidbyname : role-update-capability
    • user-getidbyname
    • user-list
    • user-mod
    • random-label
    • report-concurrency
    • role-create
    • role-delete
    • role-update-capability
  • role-update-contextlevel : webservice-call
    • role-update-contextlevel
    • sql-run
    • sql-cli
    • theme-info
    • webservice-call

Do you administer a large Moodle site? What are your favorite tools to create efficiencies? Tell us in the comments below!