moodle quiz start
Options
moodle quiz show
Options
moodle quiz answer
Options
moodle quiz finish
Global options apply to every command. See Global options.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Take a quiz: start an attempt, answer questions, finish it. Beta.
moodle quiz [options] [command]
moodle quiz start [options] <ref>
| Argument | Required | Description |
|---|---|---|
ref | Yes | Quiz id, URL, or UNIT TASK phrase |
| Flags | Description |
|---|---|
--password <password> | Quiz access password for scripts; at a terminal you are asked for it instead. |
--yes. Add --dry-run to print the plan without applying it.moodle quiz show [options] <attempt> <quiz>
| Argument | Required | Description |
|---|---|---|
attempt | Yes | Attempt id |
quiz | Yes | Quiz id |
| Flags | Description |
|---|---|
--page <n> | Page number, starting at 1. |
moodle quiz answer [options] <attempt> <quiz> <question> [answer]
| Argument | Required | Description |
|---|---|---|
attempt | Yes | Attempt id |
quiz | Yes | Quiz id |
question | Yes | Question number as shown |
answer | No | Option letters or answer text |
| Flags | Description |
|---|---|
--from <file> | Read the answer text from a file. |
--value <value> | Value; repeat for multi-field questions. |
--yes. Add --dry-run to print the plan without applying it.moodle quiz finish [options] <attempt> <quiz>
| Argument | Required | Description |
|---|---|---|
attempt | Yes | Attempt id |
quiz | Yes | Quiz id |
--yes. Add --dry-run to print the plan without applying it.