Loading...
Loading...
Helps users run the right `moodle` CLI commands for interacting with Moodle LMS. Triggers when users ask about Moodle CLI usage, commands, workflows, or troubleshooting.
npx skill4agent add nathanfredericks/moodle-cli moodle-climoodlemoodle
├── auth # Manage authentication
│ ├── login # Log in to a Moodle instance
│ ├── logout # Log out of the Moodle instance
│ ├── status # Show authentication status
│ └── token # Print the authentication token
├── course # Manage courses
│ ├── list # List enrolled courses
│ ├── get <id> # Get course details
│ ├── search <query> # Search courses
│ ├── content <id> # Get course contents (sections, modules)
│ ├── module <id> # Get course module details
│ ├── grades <id> # View your course grades
│ └── download <id> # Download module files
├── assignment # Manage assignments
│ ├── list # List assignments (--course to filter)
│ ├── get <id> # Get assignment details
│ ├── status <id> # Check submission status
│ ├── upload <id> <file> # Upload files to an assignment
│ ├── submit <id> # Submit assignment for grading
│ ├── text <id> # View or update online text submission
│ └── download <id> # Download submission files (-R for resources)
├── forum # Manage forums
│ ├── list # List forums in a course (--course)
│ ├── discussions <id> # List discussions in a forum
│ ├── read <id> # Read a discussion thread
│ ├── post <id> # Create a new discussion
│ ├── reply <id> # Reply to a post
│ ├── edit <id> # Edit a post
│ └── delete <id> # Delete a post
├── user # Manage users
│ ├── whoami # Show current user info
│ ├── list # List users enrolled in a course (--course)
│ └── get <id> # Get user by ID
├── config # Manage configuration
│ ├── list # List all configuration settings
│ ├── get <key> # Get a configuration value
│ └── set <key> <value> # Set a configuration value
└── version # Print the version| Flag | Description |
|---|---|
| Output format: |
| Disable color output |
| Enable verbose output |
| Help for the command |
-f jsonjq# List courses as JSON
moodle course list -f json
# Get a specific field
moodle course list -f json | jq '.[].fullname'
# Filter assignments by course
moodle assignment list --course 42 -f json | jq '.[] | {id, name, duedate}'tablemoodle auth login --url https://moodle.example.com
moodle auth status # verify login
moodle course list # see enrolled coursesmoodle assignment list --course 42 # find assignment ID
moodle assignment get 101 # check details and due date
moodle assignment upload 101 report.pdf # upload file
moodle assignment submit 101 --accept-statement # submit for grading
moodle assignment status 101 # verify submissionmoodle forum list --course 42 # find forum ID
moodle forum discussions 5 # list discussions
moodle forum read 100 # read a thread
moodle forum reply 200 --message "Thanks!" # reply to a post
moodle forum post 5 --subject "Question" --message "Hello" # new discussionmoodle assignment get 101 # see attached resources
moodle assignment download 101 --resources # download instructor-attached files
moodle assignment download 101 -R -o ./resources # download to a directorymoodle course content 42 # browse course sections
moodle course download 500 # download a module's files--course <id><id>jqmoodle config set format json # always output JSON
moodle config list # see current settingsreferences/references/moodle.mdreferences/moodle_auth.mdreferences/moodle_auth_login.mdreferences/moodle_course.mdreferences/moodle_course_list.mdreferences/moodle_assignment.mdreferences/moodle_assignment_list.mdreferences/moodle_forum.mdreferences/moodle_forum_list.mdreferences/moodle_user.mdreferences/moodle_user_whoami.mdreferences/moodle_config.mdreferences/moodle_config_set.mdreferences/moodle_version.mdreferences/moodle_<group>_<command>.md