How to score a file from the command line

Run clearrun score answer.txt. The CLI reads the whole file as one answer and scores it. You can list several files in one command.

Last updated

Steps

  1. Save the answer in a file

    Any text file works when you name it directly. One file is one answer.

  2. Score it

    clearrun score answer.txt
  3. Score several files

    clearrun score a.txt b.md c.txt

    Each file gets its own result under == filename, then a line such as 2 of 3 passed.

Good to know

  • An empty file is not sent. It shows Input text is empty. and counts as a failure.
  • A missing file stops the run with File not found: <path>.
  • Each file is a separate call and uses credits.