CLI Commands¶
Detailed reference for all sevaluation commands.
render¶
Render evaluation or summary reports in various formats.
Usage¶
Formats¶
| Format | Description | Report Type |
|---|---|---|
terminal |
ANSI colors + UTF8 icons | Evaluation |
markdown |
Markdown output | Evaluation |
detailed |
Verbose terminal output | Evaluation |
box |
Box-drawing format | Summary |
json |
Pretty-printed JSON | Both |
Examples¶
# Terminal output (default)
sevaluation render eval.json
# Explicit format
sevaluation render eval.json --format=terminal
# Markdown for documentation
sevaluation render eval.json --format=markdown > report.md
# JSON for programmatic use
sevaluation render eval.json --format=json | jq '.decision'
# Box format for summary reports
sevaluation render summary.json --format=box
Auto-Detection¶
The command auto-detects report type (evaluation vs summary) and uses the appropriate renderer.
check¶
Check if a report passes evaluation criteria. Useful for CI/CD gates.
Usage¶
Exit Codes¶
| Code | Status | Meaning |
|---|---|---|
| 0 | Pass | All criteria met |
| 1 | Fail/Conditional | Blocking issues or conditional pass |
Examples¶
# Basic check
sevaluation check report.json
# Use in CI
if sevaluation check report.json; then
echo "✅ Evaluation passed"
deploy_to_production
else
echo "❌ Evaluation failed"
exit 1
fi
# Capture output
result=$(sevaluation check report.json 2>&1)
Output¶
or
validate¶
Validate a JSON file against the appropriate schema.
Usage¶
Examples¶
# Validate evaluation report
sevaluation validate eval.json
# Validate summary report
sevaluation validate summary.json
Output¶
or
schema¶
Work with JSON schemas.
Subcommands¶
| Subcommand | Description |
|---|---|
generate |
Generate schema files |
show |
Display embedded schema |
generate¶
Generates:
- evaluation.schema.json
- summary.schema.json
show¶
# Show evaluation schema
sevaluation schema show evaluation
# Show summary schema
sevaluation schema show summary
version¶
Print version information.
Usage¶
Output¶
Common Workflows¶
CI Pipeline Gate¶
Generate Documentation¶
# Generate markdown reports
for f in reports/*.json; do
name=$(basename "$f" .json)
sevaluation render "$f" --format=markdown > "docs/reports/${name}.md"
done
Validate Before Commit¶
# Pre-commit hook
#!/bin/bash
for report in reports/*.json; do
if ! sevaluation validate "$report"; then
echo "Invalid report: $report"
exit 1
fi
done
Compare Reports¶
# Extract decisions from multiple reports
for f in reports/*.json; do
echo -n "$f: "
sevaluation render "$f" --format=json | jq -r '.decision.status'
done
Next Steps¶
- Report Rendering - Format details
- Pass Criteria - Check thresholds