npm.io
0.3.0 • Published yesterdayCLI

@llmref/cli

Licence
Version
0.3.0
Deps
2
Size
6 kB
Vulns
0
Weekly
0
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

@llmref/cli

Command-line client for LLM Reference - a free, versioned documentation registry and semantic search API for AI tools, coding assistants, and retrieval systems.

Provides the llmref command for one-off lookups and shell pipelines, over the public API at api.llmref.org.

Install

bun add -g @llmref/cli
# or run without installing:
bunx @llmref/cli list

Commands

llmref list                                  # list all indexed projects
llmref get <project> <version> [--full]      # print llms.txt (or llms-full.txt)
llmref resolve <project> [version]           # resolve a version + artifact URLs
llmref dumps <project> <version>             # print raw dump URLs (chunks, embeddings)
llmref search <project> <version> <query> [--top-k <n>]   # semantic search

Example:

llmref get nextjs 15.1.0 --full > nextjs-docs.txt
llmref search nextjs 15.1.0 "how do I configure caching" --top-k 3

Configuration

Variable Description
LLMREF_BASE_URL API base URL. Defaults to https://api.llmref.org/v1.
LLMREF_API_KEY API key for higher rate limits.

Documentation

Full reference, guides, and a tutorial: llmref.org.

License

MIT