scele enrol¶
Self-enrol into a course.
enrol self-enrols you into a course that has self-enrolment turned on. Pass the course id;
if the course is protected by an enrolment key, pass it with --key.
This is a write operation: it changes your enrolment on SCELE. After it succeeds the
course shows up in scele courses.
Usage¶
Arguments¶
| Argument | Required |
|---|---|
course_id |
yes |
Options¶
| Flag | Type | Description |
|---|---|---|
--instance |
value | Self-enrol instance id (optional). |
--key |
value | Enrolment key, if the course requires one. |
Example¶
Output¶

Returns:
ActionResult
| Field | Type |
|---|---|
ok |
boolean |
action |
string |
... |
command-specific fields |
Notes¶
- Courses without self-enrolment enabled will refuse; you get
request_failedcarrying Moodle's reason. - A wrong or missing
--keyis reported the same way.