Registry / llm-agents / lmnr-cli

lmnr-cli

JSON →
library0.1.9jsnpmunverified

lmnr-cli is the command-line interface tool for interacting with the Laminar AI observability platform. It allows developers to debug AI agent rollouts, run SQL queries against project data (spans, traces, events), and manage datasets (list, push, pull, create). While the core Laminar TypeScript SDK (`@lmnr-ai/lmnr`) is at version 0.8.20 (as of recent changelogs), the `lmnr-cli` itself is currently at version 0.1.9, with new features and dependency bumps frequently integrated from the monorepo. Laminar is an open-source platform designed to help developers build and monitor reliable AI agents by providing tools for tracing, evaluating, and analyzing AI agent performance. Its key differentiators include comprehensive tracing of AI agents compatible with popular LLM frameworks, tools for creating and running evaluations, and a built-in SQL editor for data analysis.

npm install lmnr-cli
INSTALL
IMPORT
SIG · LMNR-CLI
L
lmnr-cli
llm-agentsjavascriptv0.1.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

lmnr-cli
npx lmnr-cli@latest <command>
This package is a command-line interface tool. Its functionality is accessed by executing commands in the shell, typically via `npx` for temporary use or after global installation.
lmnr-cli
npm install -g lmnr-cli lmnr-cli <command>
import { lmnrCli } from 'lmnr-cli';
For repeated use, globally installing `lmnr-cli` allows direct execution without `npx`. Attempting to `import` this package as a standard JavaScript/TypeScript library for programmatic use will result in an error as it does not export a public API in this manner.
LMNR_PROJECT_API_KEY (environment variable)
export LMNR_PROJECT_API_KEY='your_api_key' lmnr-cli sql schema
lmnr-cli sql schema
Many `lmnr-cli` commands require authentication via a Laminar Project API Key. This can be provided as an environment variable or via the `--project-api-key` flag.

Demonstrates how to programmatically execute `lmnr-cli` to run a SQL query against Laminar data and process its JSON output.

import { exec } from 'child_process'; const projectApiKey = process.env.LMNR_PROJECT_API_KEY ?? ''; if (!projectApiKey) { console.error('Error: LMNR_PROJECT_API_KEY environment variable is not set.'); process.exit(1); } // Example: Run a SQL query against Laminar project data and output as JSON const command = `npx lmnr-cli@latest sql query "SELECT * FROM spans LIMIT 5" --json --project-api-key ${projectApiKey}`; exec(command, (error, stdout, stderr) => { if (error) { console.error(`exec error: ${error}`); return; } if (stderr) { console.error(`stderr: ${stderr}`); return; } console.log(`Query results:\n${stdout}`); try { const results = JSON.parse(stdout); console.log(`Parsed ${results.length} records.`); } catch (parseError) { console.error(`Failed to parse JSON output: ${parseError}`); } });
lmnr --version
Debug
Known issues
breakingThe monorepo containing `lmnr-cli` recently deprecated `llamaindex` support and migrated to TypeScript 6. While this specifically affects the core `@lmnr-ai/lmnr` SDK, users of `lmnr-cli` relying on features that previously leveraged `llamaindex` integrations might experience breaking changes or need to update their workflows to alternative methods.
fix
Review the official Laminar documentation for updated recommendations on agent frameworks and integrations. If previously using `llamaindex` indirectly through Laminar, identify and migrate to supported alternatives or direct OpenTelemetry instrumentation.
affects: >=0.8.18 (monorepo), potential impact on lmnr-cli from v0.1.8
gotchaThe `lmnr-cli` and the core `@lmnr-ai/lmnr` library exist within a monorepo, meaning their version numbers often diverge. The `lmnr-cli` itself has its own versioning (e.g., 0.1.9) which may be less frequent than the core library (e.g., 0.8.20). Ensure you are checking the changelog specifically for `lmnr-cli` when looking for updates relevant to CLI commands.
fix
Always refer to the `lmnr-cli` section of the monorepo's changelog or `npm` page for CLI-specific updates. Use `npx lmnr-cli -v` to confirm your installed CLI version.
affects: >=0.1.0
breakingSeveral features of `lmnr-cli`, such as dataset management and the SQL tool, have undergone refactoring and new feature introductions (e.g., `refactor: datasets to lmnr cli`, `feat/cli sql tool`, `feat: cli-table3 for table rendering`). This means scripts relying on older command syntax or output formats for these features may break.
fix
Consult the updated CLI documentation for `sql` and `dataset` commands to ensure your scripts use the latest syntax and arguments. Test existing automation after upgrading the CLI.
affects: >=0.1.7
Errors
Common errors & fixes
Error: LMNR_PROJECT_API_KEY environment variable or --project-api-key option is required.
The CLI could not find the Laminar Project API Key, which is necessary for authenticating with the Laminar platform.
fix
Set the `LMNR_PROJECT_API_KEY` environment variable (e.g., `export LMNR_PROJECT_API_KEY='your_key'`) or pass it directly using the `--project-api-key` flag (e.g., `lmnr-cli sql schema --project-api-key 'your_key'`).
Unknown command "mycommand". Did you mean sql, dev, dataset?
A command was entered that `lmnr-cli` does not recognize, likely due to a typo or an attempt to use a non-existent command.
fix
Verify the command name against the `lmnr-cli` documentation or run `lmnr-cli --help` to see the list of available commands (e.g., `sql`, `dev`, `dataset`).
npx: command not found
`npx` is not installed or not in your system's PATH. It is typically bundled with `npm` (Node Package Manager).
fix
Ensure Node.js and npm are correctly installed on your system. If they are, you might need to reinstall npm or check your system's PATH configuration. `npx` is available with npm version 5.2.0 and higher.
Upgrade
Version history
0.1.9latest on npm
Audit
Dependencies
@lmnr-ai/lmnrrequiredThe CLI interacts with the core Laminar AI functionalities provided by this SDK for tracing, evaluation, and data management.
Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
2
Resources
lmnr-cli — npm install lmnr-cli · libregistry