CLI Reference¶
Scrinium is designed to work best through an AI coding agent, but the CLI remains useful for scripting, inspection, and quick queries.
The authoritative source is always:
scrinium --help
scrinium <command> --help
The command groups below are aligned with the current codebase.
Core Commands¶
scrinium index
scrinium search
scrinium search-author
scrinium show
scrinium top-cited
scrinium tag
scrinium tags
scrinium topics
scrinium pending
searchis the single retrieval entry point, performing FTS5 keyword search (the only built-in retrieval mode; meaning-based recall is an agent-side workflow — seedocs/guide/search.md).search --scope main,proceedings,explore:*,arxivruns federated search across the main library, proceedings, explore databases, and arXiv.search-authorsearches by author name.showsupports layered reading from metadata to full text.tag/tagsmanage agent-curated paper tags and the controlled vocabulary (data/tags.yaml);search/workspace searchaccept--tagfilters.topicsbrowses the tag-based topic distribution:scrinium topicsshows the overview (tags sorted by paper count, with shares and the untagged count),scrinium topics <tag>drills into one topic. Tags are the only topic system.pendinglists items blocked indata/pending/anddata/duplicates/with resolution hints; a no-DOI item can be resolved in place viascrinium repair <pending-stem>, which ingests it with a dedup guard against papers already in the library.- Read-oriented commands (
search/show/workspace show/top-cited) accept--jsonfor structured output.
Ingest And Enrich¶
scrinium ingest
scrinium pipeline [preset]
scrinium enrich toc|abstract
scrinium refresh
scrinium attach-pdf
ingestruns the inbox ingest preset; it is an alias forpipeline ingestand accepts all pipeline options.pipelineis the main composable ingest entrypoint.- Current preset values are
fullandingest(bothmineru, extract, dedup, ingest, index),enrich(abstract, toc), andreindex(index). - Run
scrinium pipeline --helpfor pipeline options such as--steps,--dry-run,--no-api, and--rebuild. enrich tocextracts the table of contents with pure rules, andenrich abstractbackfills missing abstracts (regex, with optional DOI-page fetch). When a rule-based path misses, the command prints ahint:suggesting the agent read the paper and write the field directly.refreshre-fetches metadata, citation counts, and references from the APIs.
Graph, Topics, And Explore¶
scrinium references
scrinium cited-by
scrinium shared-references
scrinium snowball
scrinium topics
scrinium explore
- Use
references,cited-by, andshared-referencesfor citation-graph analysis, andsnowballto expand from seed papers along the graph. - Use
topicsfor tag-based topic browsing (distribution overview + per-tag drill-down); there is no second topic system behind it. - Use
explorefor OpenAlex-backed literature exploration outside the main library (fetch/search/list/info; keyword search over an isolated FTS5 index).
Import, Export, And Workspaces¶
scrinium import endnote|zotero
scrinium export
scrinium workspace
import endnoteandimport zoterobring existing libraries into Scrinium.exporthandles BibTeX, RIS, Markdown, and DOCX export.workspacemanages paper subsets for focused projects and writing workflows (init/add/remove/list/show/search/rename/export).
Scientific Runtime And Documents¶
scrinium toolref
scrinium arxiv
scrinium document
scrinium citation-styles
toolrefprovides versioned scientific tool documentation lookup.- Current
toolrefsubcommands arefetch,show,search,list, anduse. arxivsupports arXiv search and PDF fetch.documentprovides Office-document utilities such as inspection.citation-stylesmanages citation styles (list/show).
Audit, Setup, And Runtime Inspection¶
scrinium audit
scrinium repair
scrinium rename
scrinium setup
scrinium insights
scrinium metrics
scrinium proceedings
scrinium citation-check
setupis the environment check and setup wizard entrypoint.repairfixes a library paper's metadata in place (standardized rename), or — given adata/pending/item name — ingests that pending item into the library with a dedup guard and removes the pending directory.insightsanalyzes research behavior such as hot keywords and reading trends.metricsshows runtime metrics (pipeline step / API call timing and search/read events;--categorydefaults tostep).proceedingsprovides dedicated proceedings helpers.citation-checkverifies whether citations in text are backed by the local library.
Agent Handoff Hints¶
When a deterministic path fails or returns low confidence, CLI output (text and --json alike) includes a line prefixed with hint:. This is a framework-to-agent handoff signal: the agent is expected to take over with the corresponding skill workflow (e.g. dispatch a subagent to read the original PDF and fix meta.json directly). Emission points include ingest results, pending, enrich abstract / enrich toc misses, audit findings, and show --layer 3 when no conclusion has been written yet.
Legacy Aliases¶
Older short names still work but are hidden from the top-level --help listing. Prefer the primary names in new scripts and prompts:
| Legacy alias | Primary form |
|---|---|
fsearch <q> --scope S |
search <q> --scope S |
enrich-toc |
enrich toc |
backfill-abstract |
enrich abstract |
import-endnote |
import endnote |
import-zotero |
import zotero |
refetch |
refresh |
refs |
references |
citing |
cited-by |
shared-refs |
shared-references |
ws |
workspace |
style |
citation-styles |
Removed in 3.0 (no alias): embed, vsearch, usearch, enrich-l3 / enrich conclusion, translate, explore embed|topics|viz, and the --mode option on search / workspace search / explore search.
Recommended Pattern¶
Use the agent for the full workflow, and fall back to CLI commands when you want:
- fast scripted access
- a precise diagnostic check
- direct inspection of intermediate results
- reproducible command-line automation