Moosh – the Moodle shell
Before you can make use of Moosh, you will have to install it (see Chapter 8, Moodle Plugins). Once it's been installed, you have a vast number of commands (at the time of writing over 80!) at your disposal.
The general syntax of Moosh is as follows:
moosh <command> <options>
To give you an idea of the types of things you can do with Moosh, we will show you a number of examples.
Tasks |
Commands |
Description |
---|---|---|
Clear cache |
|
This is the equivalent of |
Show all plugin types |
|
Displays a list of all installed plugins and their installation location. |
Create a user |
|
Create a user with user name test. |
Create 10 users |
|
This type of enumeration can be used with a number of Moosh commands. |
Create a user with some optional values |
|