> For the complete documentation index, see [llms.txt](https://docs.layerlens.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.layerlens.ai/more-in-this-section-9/examples.md).

# Examples

Common layerlens CLI command sequences.

## Run the gating eval in CI

```bash
layerlens evaluate --space my-regression-space --fail-on-regression --tolerance 0.005
```

## Daily smoke

```bash
layerlens evaluate --space smoke --output json | jq '.score'
```

## Bulk trace ingest

```bash
layerlens traces upload./traces-batch.jsonl --tag env=production
```

## Compare two models

```bash
layerlens evaluate --model openai/gpt-4o --benchmark mmlu --output json > a.json
layerlens evaluate --model anthropic/claude-opus-4-7 --benchmark mmlu --output json > b.json
diff <(jq.accuracy a.json) <(jq.accuracy b.json)
```

## Optimize a judge

```bash
layerlens judges optimize --judge-id JUDGE --dataset-id DATA --iterations 20
```

## See also

* [Cookbook integration recipes](/2.-get-started/all-cookbook-recipes.md)
