KosmoKrator

productivity

Teachable CLI for Headless Automation

Use the Teachable CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 7 read 0 write API key auth

Teachable CLI for Headless Automation

Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.

Use headless automation when another tool needs a stable local command surface. The Teachable CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Teachable CLI for Headless Automation
kosmokrator integrations:configure teachable --set api_key="$TEACHABLE_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call teachable.teachable_list_courses '{"page":1,"per_page":1}' --json

Discovery Before Execution

Agents and scripts can inspect Teachable docs and schemas before choosing a function.

kosmo integrations:docs teachable --json
kosmo integrations:docs teachable.teachable_list_courses --json
kosmo integrations:schema teachable.teachable_list_courses --json
kosmo integrations:search "Teachable" --json
kosmo integrations:list --json

Useful Teachable CLI Functions

FunctionTypeParametersDescription
teachable.teachable_list_courses Read page, per_page List courses from your Teachable school. Paginate with page/per_page parameters.
teachable.teachable_get_course Read course_id Get a single course from your Teachable school by its course ID.
teachable.teachable_list_users Read page, per_page List users from your Teachable school. Paginate with page/per_page parameters.
teachable.teachable_get_user Read user_id Get a single user from your Teachable school by their user ID.
teachable.teachable_list_enrollments Read user_id, course_id, page, per_page List enrollments from your Teachable school. Filter by user_id or course_id and paginate with page/per_page.
teachable.teachable_get_enrollment Read enrollment_id Get a single enrollment from your Teachable school by its enrollment ID.
teachable.teachable_get_current_user Read none Verify your Teachable API key and get the current user profile. Use this to confirm the integration is working.

Automation Notes

Related Teachable CLI Pages