CLI
Notes & flashcards
Add flashcards and notes to the lessons in your library.
These commands write to the lessons in your library.
flashcard addpersists only; flashcards aren't part of retrieval.note addpersists immediately; note text appears in semantic search asynchronously.
Flashcards & notes
flashcard addCreate a flashcard (front question + back answer) on a lesson. Appears in the lesson's deck immediately.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| --lesson* | string | — | Lesson UUID the card belongs to. |
| --question* | string | — | Front / question. |
| --answer* | string | — | Back / answer. |
| --format | json | text | json | Output format. |
Returns
The created card's result (flashcard_id, lesson_id).
note addAppend a timestamped markdown note entry to a lesson. Content from --content or piped stdin.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| --lesson* | string | — | Lesson UUID the note belongs to. |
| --content | string | — | Markdown body. If omitted, read from stdin. |
| --format | json | text | json | Output 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>