Skip to content

The learn command

Courses, lessons, exercises, checks and progress from your terminal, and the tools for authors.

Applies to EngineCloud
View as Markdown
On this page
  1. For learners
  2. For authors
  3. Exit codes
Terminal
npx @sypnia/learn next

It uses the session of npx @sypnia/app login, shared by every Sypnia command line. With your own engine, sign in once with npx @sypnia/learn login --server <url>.

For learners

CommandDoes
learn courses, learn course <id>the courses, and one course with your progress
learn nextthe next lesson of your path
learn lesson <id> [--level] [--lang]read a lesson in the terminal
learn start <lesson> [--project <ref>] [--path <dir>]start its exercise: the branch and LEARN.md; --project defaults to the project of the folder’s sypnia.toml
learn check [--watch]run the checks on your last commit; --watch checks on every commit
learn hintone hint, at your level
learn statusthe exercise you are on and its last results
learn finish --keep | --dropkeep the branch with a pull request, or delete it
learn explain <file[:lines]>, --case <id>, --trace <id>, --problem <id>an explanation at your level
learn progress [--json]what you have done
learn progress export, learn progress deletedownload, or delete, all your progress

For authors

CommandDoes
learn lint <dir>check a course folder against the format
learn preview <lesson> [--level] [--project sample|<ref>] [--lang]the lesson as one learner would see it
learn courses add <dir> [--org <org>]publish a course, or a new version of it
learn courses remove <id>take a course down; learners keep their progress

Exit codes

CodeMeaning
0done
1an error
2wrong use of the command
3not signed in
4not allowed
5the checks ran, and at least one failed
  1. For learners
  2. For authors
  3. Exit codes

    Search pages, sections and terms