moodle-cli 0.9.0 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/dist/moodle.js +1221 -336
- package/dist/worker/recovery.js +26 -2
- package/dist/worker/worker.js +26 -2
- package/package.json +1 -1
- package/references/command-reference.md +1 -1
package/README.md
CHANGED
|
@@ -67,6 +67,14 @@ moodle
|
|
|
67
67
|
|
|
68
68
|
On first use, enter your Moodle site origin, such as `https://moodle.example.edu`. `moodle-cli` validates it and saves it to `~/.config/moodle-cli/config.yaml`. If the CLI cannot find an active session, it opens your university's sign-in page and waits for you to finish.
|
|
69
69
|
|
|
70
|
+
On macOS the cookie store sits behind Full Disk Access, which is granted to your terminal application rather than to the CLI. If `moodle doctor` reports that the store cannot be opened, either grant that access and restart the terminal, or hand the cookie over once:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
moodle auth login --paste
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The prompt does not echo, and the value is kept in the encrypted session cache, so this is a one-time step. Paste whatever the browser gives you: in the developer tools' Network tab, `Copy as cURL` on any request to the site carries the cookie, as does the `MoodleSession` value from the cookie panel.
|
|
77
|
+
|
|
70
78
|
Keep the session active on macOS with `moodle auth keepalive install`. On Linux, schedule `moodle auth keepalive --json` every 30 minutes with cron.
|
|
71
79
|
|
|
72
80
|
GitHub Releases also provide standalone binaries for macOS arm64 and Linux x64.
|