NethServer-moodle now also includes the latest Moodle Shell and a wrapper like in Nextcloud so you can manage Moodle like
moosh user-create testuser1 -p Secret123
Visit the wiki page for more information.
NethServer-moodle now also includes the latest Moodle Shell and a wrapper like in Nextcloud so you can manage Moodle like
moosh user-create testuser1 -p Secret123
Visit the wiki page for more information.
Thats great. Thank you.
Here some moosh hints.
If you don’t know the exact name of the command you want to run but know the part of it, run moosh with the substring:
moosh user
As a result you will get a list of all commands that contain string “user”:
course-enrolleduser
user-create
user-delete
user-getidbyname
user-list
user-mod
Moosh will always try to use Moodle’s superuser. But you can change on what user you want to execute specific command. For example:
moosh -u testuser course-backup 1
will execute command course-backup
for user with name testuser
commands: moosh