Export project data to AI-optimized twin format directory structure.
kbc llm export [flags]
The command must be run in a directory initialized with kbc llm init.
The twin format is designed for AI assistants to understand and work with Keboola projects directly from Git repositories. The export includes:
The export creates output files containing JSON with inline documentation (_comment, _purpose, _update_frequency fields) to help AI assistants understand the data structure.
--with-samples# are encrypted in the output-H, --storage-api-host <string>-t, --storage-api-token <string>-f, --force--with-samples--sample-limit <int>--max-samples <int>The export creates the following directory structure:
.
├── buckets/ # Bucket and table metadata
│ └── index.json
├── transformations/ # Transformation configurations
├── components/ # Component configurations by type
├── jobs/ # Job execution history
│ ├── recent/
│ └── by-component/
├── indices/ # Query indices and lookups
│ └── queries/
├── ai/ # AI assistant guides
├── samples/ # Table data samples (if --with-samples)
├── lineage.json # Data flow dependencies
└── metadata.json # Project metadata
➜ kbc llm export
[1/5] Getting default branch...
Using branch: Main (ID: 1234)
[2/5] Fetching project data from APIs...
Fetched: 5 buckets, 23 tables, 150 jobs
[3/5] Processing data (lineage, platforms, sources)...
Processed: 5 buckets, 23 tables, 8 transformations, 45 lineage edges
[4/5] Generating twin format output...
[5/5] Skipping samples (not requested)
Twin format exported to: /path/to/project
Export completed successfully.
➜ kbc llm export --with-samples --sample-limit 50 --max-samples 20
[1/5] Getting default branch...
Using branch: Main (ID: 1234)
[2/5] Fetching project data from APIs...
Fetched: 5 buckets, 23 tables, 150 jobs
[3/5] Processing data (lineage, platforms, sources)...
Processed: 5 buckets, 23 tables, 8 transformations, 45 lineage edges
[4/5] Generating twin format output...
[5/5] Fetching and generating table samples...
Twin format exported to: /path/to/project
Export completed successfully.