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
Save the answer in a file
Any text file works when you name it directly. One file is one answer.
Score it
clearrun score answer.txtScore several files
clearrun score a.txt b.md c.txtEach file gets its own result under
== filename, then a line such as2 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.