LearnOS docs
CLI

Notes & flashcards

Add flashcards and notes to the lessons in your library.

These commands write to the lessons in your library.

  • flashcard add persists only; flashcards aren't part of retrieval.
  • note add persists immediately; note text appears in semantic search asynchronously.

Flashcards & notes

flashcard add

Create a flashcard (front question + back answer) on a lesson. Appears in the lesson's deck immediately.

Parameters
NameTypeDefaultDescription
--lesson*string—Lesson UUID the card belongs to.
--question*string—Front / question.
--answer*string—Back / answer.
--formatjson | textjsonOutput format.
Returns
The created card's result (flashcard_id, lesson_id).
note add

Append a timestamped markdown note entry to a lesson. Content from --content or piped stdin.

Parameters
NameTypeDefaultDescription
--lesson*string—Lesson UUID the note belongs to.
--contentstring—Markdown body. If omitted, read from stdin.
--formatjson | textjsonOutput format.
Returns
The created note's result (note_id, lesson_id).
learnos flashcard add --lesson <id> --question "What is the call stack?" --answer "..."
echo "## Recap\n- closures capture scope" | learnos note add --lesson <id>

On this page

Command Palette

Search for a command to run...