TheDocumentation Index
Fetch the complete documentation index at: https://laminar.sh/docs/llms.txt
Use this file to discover all available pages before exploring further.
lmnr-cli is a command-line tool for querying Laminar data, managing datasets, and running the interactive agent debugger from your terminal. It is the fastest way to pull traces into a shell pipeline, script dataset maintenance, or connect an AI coding agent that can shell out, all without leaving the command line.
The CLI is a standalone npm package (
lmnr-cli) and ships independently from the @lmnr-ai/lmnr SDK. You do not need the SDK installed to query data or manage datasets.Install
Authenticate
Every command talks to your Laminar project with a project API key. Grab one from Settings → Project API Keys in the dashboard, then set it once:--project-api-key <key> on any command.
For self-hosted deployments, override the API URL and port:
Query data with SQL
Run ClickHouse SQL against your project’s spans, traces, signal events, and more:--json to emit structured JSON on stdout (messages and errors go to stderr), which makes it trivial to pipe into jq, a local script, or an AI coding agent:
Only
SELECT queries are allowed. The query runs scoped to your project automatically; no tenant filter is needed in your WHERE clause.Manage datasets
List, push, pull, and create datasets from files on disk. Supported formats:.jsonl, .json, .csv.
Run the agent debugger
lmnr-cli dev spins up an interactive debugging session for a function in your codebase and connects it to the Laminar debugger UI so you can rerun, inspect, and edit inputs live.
Piping and agent-friendly output
The CLI is designed to be scriptable and to plug cleanly into AI coding agents:- Structured output on stdout, logs on stderr. Every command that supports it takes
--jsonand prints machine-readable output to stdout, while human-friendly progress messages are written to stderr. This keeps pipes clean. - Non-zero exit codes on failure. Scripts and agents can branch on success/failure without parsing output.
- Stable noun-verb command surface (
sql query,dataset push,dataset pull,dataset list,dataset create,dev), so commands are easy for an agent to compose.
sql query --json, this makes the CLI a drop-in SQL layer for any agent that can run shell commands, with no SDK install required.
Help
Every command accepts-h / --help:
What’s next
SQL Editor
The UI counterpart for ad-hoc SQL queries, with schema reference and examples.
MCP Server
Connect Claude Code, Cursor, or any MCP client to Laminar directly.
Datasets CLI workflow
End-to-end example of pulling, editing, and pushing a dataset.
Debugger
Rerun long-running agents from a checkpoint without leaving the page.
