Skip to content

nrepo pull

Terminal window
nrepo pull <id> [options]

nrepo pull exports an idea and its full context to local files. By default it writes four files into the current directory: the idea content, related ideas context, external links, and a sync metadata file. Use --to to specify a different output directory.

When --json is passed, no files are written. Instead the full idea data is printed to stdout, which is useful for piping into other tools.

FlagTypeDefaultDescription
--to <dir>string. (current directory)Directory to write exported files into.
--jsonboolean(see auth)Print idea data as JSON instead of writing files.
--humanboolean(see auth)Output as human-readable text.
Terminal window
nrepo pull 42
# Writes: IDEA.md, CONTEXT.md, RELATED.md, .neuralrepo
Terminal window
nrepo pull 42 --to ./exports
# Writes: ./exports/IDEA.md, ./exports/CONTEXT.md, ./exports/RELATED.md, ./exports/.neuralrepo
Terminal window
nrepo pull 42 --json | jq '.body'
FileContents
IDEA.mdThe idea title, status, source, tags, creation date, source URL, and body in Markdown format.
CONTEXT.mdRelated ideas with relation types and similarity scores.
RELATED.mdExternal links attached to the idea with titles.
.neuralrepoSync metadata: idea ID, API URL, and pull timestamp (JSON).