refresh-context
Refresh or reuse per-paper research context.
Invocation#
lem-cli refresh-context [--force] [--limit <n>]Inputs and options#
- --force rescrapes full-text context instead of using cached-or-local context.
- --limit <n> processes only the first n registry papers. The parser accepts any integer; zero or a negative value therefore selects no papers.
Output and state#
Without --force, loads cached-or-local context and persists any newly built context. With --force, performs a full-text scrape. The JSON summary reports each paper, paper_count, refreshed_or_created, reused_existing, and failed.
The process exits nonzero after printing the summary when one or more forced scrapes are incomplete.
Refusals#
- --limit without an integer refuses with “--limit needs a number”.
- Any other argument refuses with “refresh-context: unknown option <argument>”.
- An empty or unreadable registry refuses with “registry empty or not found at <path>”.