Getting started
Use Node 22 or later. Exevra runs the command in your configuration through Bash on POSIX systems and reads the JUnit XML reports it produces.
Install the CLI as a development dependency in the repository you want to protect:
npm install --save-dev @exevra-dev/cli@0.1.1Initialize Exevra with a test command that writes JUnit XML. The npx exevra init --command form supports JUnit XML only. It writes .exevra.yml, runs the command, and creates the first baseline. It never overwrites an existing configuration.
npx exevra init \ --command "npm test -- --reporter=junit --outputFile=artifacts/junit.xml" \ --report artifacts/junit.xmlgit add .exevra.yml .exevra/baseline.jsongit commit -m "test: record Exevra baseline"For v0, init accepts ASCII characters only in the configuration filename and report path. Your workspace directory may use non-ASCII characters. This keeps configuration and report paths unambiguous on filesystems with Unicode aliases.
If the first test run fails, produces no valid JUnit report, or reports zero executed tests, .exevra.yml remains, but .exevra/baseline.json is not created. Fix the test command, then create the baseline from that configuration.
npx exevra record --config .exevra.ymlRun check in CI or locally. It clears configured report paths before it executes the command, so an old report cannot satisfy the check.
npx exevra check --config .exevra.ymlSee the CLI guide for modes and output formats, configure the GitHub Action, or run Exevra in Generic CI and Jenkins.