documents CLI is the surface for the library’s day-to-day management: listing, tagging, and superseding.
Commands
documents list
--json for scriptable output.
documents get
documents supersede
--restore reverses supersede. The document rejoins the retrieval index.
Prefer supersede over delete: it’s reversible and preserves the audit trail. Delete is only appropriate for true takedowns (PII, legal removal) — and even then, use the library UI, not the CLI, because delete requires confirmation.
documents tag
--add and --remove are optional (though at least one is required).
Recipes
Move a set of docs from one folder to another
Supersede everything older than a date
Audit tag coverage
Snapshot document metadata to git
What the CLI does NOT do
- Upload — use the app for one-off uploads (see Upload documents) or a Foundry pipeline for automated ingest (see
nora pipelines). - Delete — CLI can only supersede. To hard-delete, use the app UI (with double confirmation).
- Edit content — documents are immutable once ingested; edit the source and re-ingest.
Where document IDs come from
- App — every document in the library shows its ID in the details panel.
- Foundry logs —
pipelines logs getshows the IDs of documents produced by a run. documents list— for scripting.