Skip to content
export

netcodex export

Export conversations: one folder per conversation plus an index.md.

On this page

Usage

netcodex export [OPTIONS]

Options

  • --sourceTEXTDefault: auto

    Tool(s): auto, all, or a comma-separated list (see netcodex sources).

  • --allFlag

    Export every available source (same as --source all).

  • --sinceTEXT

    Only sessions active since a date (2026-06-01) or age (7d, 12h, 2w).

  • --untilTEXT

    Only sessions last active before this date or age.

  • --workspaceTEXT

    Only sessions whose workspace path contains this text.

  • --threadTEXT

    Conversation/session ID to export.

  • --formatsTEXTDefault: md

    Comma-separated formats: md, html, pdf, qd.

  • --outPATH

    Output directory (default: ./exports, or netcodex config set output_dir ...).

  • --limitINTEGER (x>=0)Default: 0

    Latest sessions per source to export (0 = all).

  • --include-paths/--no-include-pathsFlagDefault: --no-include-paths

    Include full local source paths in metadata.

  • --viewTEXT

    readable (short story, full messages and each tool in one sentence; no AI) or original (everything: commands, outputs, variables).

  • --templateTEXT

    Template: chat, transcript, report, book, minimal... (see netcodex templates).

  • --langTEXT

    Language of the help and of the exports: es or en.

  • --jsonFlag

    Print machine-readable JSON.

  • --localFlag

    Confirm this export stays in the local runtime.

  • --include-reasoning/--no-reasoningFlag

    Include the assistant's reasoning (a short collapsible note in the readable view).

  • --include-tool-output/--no-tool-outputFlagDefault: --include-tool-output

    Original view: include tool results under each tool call.

  • --include-system-context/--no-system-contextFlagDefault: --no-system-context

    Original view: include injected environment/instructions/hook context (hidden by default).

  • --include-subagents/--no-subagentsFlagDefault: --include-subagents

    Append subagent transcripts to their parent.

  • --max-tool-output-linesINTEGER (x>=0)Default: 200

    Truncate each tool output after N lines (0 = no limit).

  • --max-tool-output-bytesINTEGER (x>=0)Default: 32000

    Truncate each tool input/output after N bytes (0 = no limit).

  • --jobsINTEGER (x>=0)Default: 0

    Worker processes for large exports (0 = auto, 1 = none).

  • --incremental/--no-incrementalFlagDefault: --incremental

    Skip sessions unchanged since the last export into --out (state in .netcodex-state.json).

  • --forceFlag

    Re-export every selected session.

Examples

  • Export Codex chats as readable Markdown, HTML and PDF.

    netcodex export --source codex --formats md,html,pdf
  • Everything from the last 7 days with the Report template.

    netcodex export --all --since 7d --template report
  • Full technical detail (every command and output) into ./exports.

    netcodex export --source claude --view original --out exports