What problem does it solve?
Administrators often perform repetitive Moodle LMS tasks manually. This Skill automates Moodle LMS administration via REST API to streamline course, user, enrollments, and content management across Moodle installations.
Core Features & Use Cases
- Course management: List, create, modify courses and manage sections.
- User and enrollment management: List users, create/modify profiles, enroll students, and adjust roles.
- Grades and content handling: Retrieve grades, update grades, and manage course contents and activities.
- Use Case: An admin needs to provision a new course for a semester, enroll students in bulk, and distribute course materials automatically through API calls.
Quick Start
Export environment variables and run the CLI:
export MOODLE_URL="https://your-moodle-site"
export MOODLE_TOKEN="your_moodle_token"
python3 scripts/moodle_admin.py --list-courses
python3 scripts/moodle_admin.py --course-id 12 --list-students
Note: Replace tokens with valid credentials.