Repository navigation
Home
github-actions[bot] edited this page Sep 26, 2026
·
4 revisions
Moodle CLI is an independent command-line client for learners, educators, administrators, scripts, and agents. It prefers Moodle's official Web Service API, uses read-only fallbacks when a site exposes fewer functions, and verifies the final state of assignment submissions.
- Install a release or build from source.
- Add a site and choose an authentication method.
- Explore the command guide.
- For automation, read the JSON contract and the automation recipes, which include rules to give an agent.
- Configuration contains site and account metadata; credentials live in the operating-system keychain.
- The CLI checks capabilities reported by the active site instead of assuming them from a version number.
- HTML fallback is read-only. Unknown Web Service functions are treated as writes.
- A write with an unknown outcome is reported as ambiguous and is never blindly retried.
- Human output and the versioned JSON contract are explicit, separate interfaces.
The Docker-backed integration suite currently verifies Moodle 4.5.12, 5.1.7, and 5.2.3. Its long-lived fixture represents ten academic years rather than a pristine demonstration site. See Development and testing for exact commands and coverage.
Moodle CLI is not affiliated with Moodle or Moodle HQ. “Moodle” is a trademark of Moodle Pty Ltd.
Moodle CLI
- Home · 繁中
- Installation · 安裝
- Authentication and sites · 登入與站台
- Commands · 命令
- Complete command reference · 完整命令參考
- Feature coverage · 功能覆蓋
- Roles and capabilities · 角色與 capability
- Scale test model · 規模測試模型
- Report contract · 報告契約
- JSON contract · JSON 契約
- Automation recipes · 自動化範例
- Claude connector · Claude connector
- Security model · 安全模型
- Development and testing · 開發與測試