LearnOS docs
CLI

lesson & chunk

Read full lessons and individual sections.

lesson get

Fetch the full markdown body of one lesson by id.

Parameters
NameTypeDefaultDescription
<id>*stringLesson UUID (positional).
--formatjson | textjsonOutput format.
Returns
The lesson with its course title and module. In text mode: a markdown header + content_md.
lesson list

List lessons within a course, optionally filtered to one module.

Parameters
NameTypeDefaultDescription
--course*stringCourse id or title substring (matched on title via LIKE).
--modulestringModule-name substring filter.
--formatjson | textjsonOutput format.
Returns
Lessons with id, title, and module.
chunk get

Fetch one lesson section (chunk) by lesson_id + anchor, as returned by search.

Parameters
NameTypeDefaultDescription
<lesson_id>*stringLesson UUID (positional).
<anchor>*stringAnchor slug from a search hit (positional).
Returns
The section's heading path and full body.
learnos lesson list --course "Web Development" --module "Js basics" --format text
learnos lesson get 4110df12-e7f4-4113-b72d-c8cd427edae7
learnos chunk get 4110df12-e7f4-4113-b72d-c8cd427edae7 loops-modern-loop-alternatives

Command Palette

Search for a command to run...