> 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/13.1-sdk-and-apis/cli.md).

# CLI reference

The `layerlens` CLI ships with the Python SDK. Install the SDK; the CLI is on your PATH.

```bash
pip install layerlens --extra-index-url https://sdk.layerlens.ai/package
export LAYERLENS_STRATIX_API_KEY="..."
layerlens --version
```

<table data-view="cards"><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Getting started</strong></td><td>Login, set up profile.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/getting-started.md">Read</a></td></tr><tr><td><strong>login</strong></td><td>Authenticate.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/login.md">Read</a></td></tr><tr><td><strong>evaluate</strong></td><td>Create and run an evaluation.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/evaluate.md">Read</a></td></tr><tr><td><strong>traces</strong></td><td>Upload and browse traces.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/traces.md">Read</a></td></tr><tr><td><strong>trace-evaluate</strong></td><td>Run a trace evaluation.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/trace-evaluate.md">Read</a></td></tr><tr><td><strong>judges</strong></td><td>Create and manage judges.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/judges.md">Read</a></td></tr><tr><td><strong>scorers</strong></td><td>Create and manage scorers.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/scorers.md">Read</a></td></tr><tr><td><strong>models</strong></td><td>Browse the catalog.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/models.md">Read</a></td></tr><tr><td><strong>benchmarks</strong></td><td>Browse benchmarks.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/benchmarks.md">Read</a></td></tr><tr><td><strong>config</strong></td><td>CLI configuration.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/config.md">Read</a></td></tr><tr><td><strong>examples</strong></td><td>Common command sequences.</td><td><a href="https://github.com/LayerLens/gitbook-full/blob/main/13-reference/cli/examples.md">Read</a></td></tr></tbody></table>

## Global options

```bash
layerlens --help
layerlens --version
layerlens --profile production
layerlens --output json|yaml|table
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.layerlens.ai/13.1-sdk-and-apis/cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
