CLI Overview
The lucerna CLI lets you index, search, and inspect codebases directly from the terminal — no code required.
Running without installing
Section titled “Running without installing”Use a package manager’s runner to execute Lucerna as a one-off command:
npx @upstart.gg/lucerna <command># orpnpm dlx @upstart.gg/lucerna <command># orbunx @upstart.gg/lucerna <command>Installing globally
Section titled “Installing globally”For repeated use, install Lucerna globally so the lucerna binary is always available:
npm install -g @upstart.gg/lucerna# orpnpm add -g @upstart.gg/lucerna# orbun add -g @upstart.gg/lucernaThen use it directly:
lucerna <command>Available commands
Section titled “Available commands”| Command | Description |
|---|---|
index | One-shot indexing of a project |
watch | Index and re-index on file changes |
search | Search an existing index |
graph | Explore knowledge graph relationships |
stats | Show index statistics |
clear | Delete the index |
eval | Measure recall@k against a query set |