nexus-export¶
Export project knowledge to markdown files.
Synopsis¶
Description¶
Exports lessons, insights, and implementations from the knowledge base to portable markdown files. Useful for backup, sharing, or migrating to a different setup.
Options¶
| Option | Type | Default | Description |
|---|---|---|---|
--project-id |
TEXT | (current) | Project ID to export |
-o, --output |
PATH | ./nexus-export |
Output directory |
Examples¶
Export current project¶
Output:
Exporting knowledge for project: 550e8400-e29b-41d4-a716-446655440000
- Found 15 lessons
- Found 8 insights
- Found 3 implementations
Successfully exported 26 files to ./nexus-export
Custom output directory¶
Export specific project¶
Output Structure¶
nexus-export/
├── lessons/
│ ├── lesson_abc123.md
│ └── lesson_def456.md
├── insights/
│ ├── insight_ghi789.md
│ └── insight_jkl012.md
└── implementations/
└── impl_mno345.md
Each file preserves the original metadata in YAML frontmatter, allowing re-import with nexus-index.
Re-importing Exported Files¶
Exported files can be re-indexed using nexus-index:
The indexer detects the document type from frontmatter and preserves timestamps.
See Also¶
- nexus-index - Re-import exported files
- record_lesson tool - Create new lessons