ClearRun CLI help

Install the CLI (current package 1.2.0), save a key, score text and files, and use it in CI.

Last updated

Start here

  1. How to install the ClearRun CLI

    Run npm install -g @clearrun/cli, then clearrun --version to check it worked. You need Node.js 18 or newer. Step-by-step help from the ClearRun help center.

  2. How to save your API key with clearrun login

    Run clearrun login, then paste your key. The CLI saves it on your computer so you don't have to type it again. Step-by-step help from the ClearRun help center.

  3. How to score text from the command line

    Run clearrun score --text "your answer". The CLI sends the text to ClearRun and prints an honesty score from 0 to 100. Read more in the ClearRun help center.

  4. How to fail a build when a score is too low (--threshold)

    Add --threshold to clearrun score. If any answer scores below that number, the command exits with code 1, and your CI step fails. From the ClearRun help center.

All CLI articles

Other topics