beads/website/docs/cli-reference/export.md
silvanshade 4d3a552424
Fix rig bead durability (#4373)
* Fix rig bead durability (bds-vwz)

* fix: keep rig beads out of infra migration

* fix: repair durable rig wisps

Restore migration 0035 to its frozen upstream shape and add a forward repair migration for existing type=rig rows that were routed into wisps.

Keep type=rig durable while excluding it from ready work, and cover the repair path with CLI-backed schema tests plus Dolt-server tests where available.

Agent-Signature: codex-unknown-model-unknown-reasoning on behalf of matt wilkie

* fix: make rig wisp repair migration upgrade-safe

Guard migration 0053 so older workspaces without local wisp tables no-op instead of failing, while keeping the fresh-Dolt CLI migration bundle able to exercise rig wisp repair fixtures.

Regenerate CLI reference docs for the updated infra type help text.

Agent-Signature: codex-gpt-5.5-high on behalf of matt wilkie

---------

Co-authored-by: silvanshade <silvanshade@users.noreply.github.com>
Co-authored-by: matt wilkie <maphew@gmail.com>
2026-06-22 17:06:35 -07:00

1.7 KiB

id title slug sidebar_position
export bd export /cli-reference/export 220

Generated from bd help --doc export

bd export

Export all issues to JSONL (newline-delimited JSON) format.

Each line is a complete JSON object representing one issue, including its labels, dependencies, and comments.

This command is for issue export, migration, and interoperability. It exports records from the issues table; it is not a full database backup and does not capture Dolt branches, commit history, working-set state, or non-issue tables. For supported full backup/restore flows, use 'bd backup init', 'bd backup sync', and 'bd backup restore'.

By default, exports only regular issues (excluding infrastructure beads like agents, roles, and messages). Use --all to include everything.

Memories (from 'bd remember') are excluded by default because they may contain sensitive agent context. Use --include-memories or --all to include them.

EXAMPLES: bd export # Export issues to stdout bd export -o issues.jsonl # Export issues to file bd export --include-memories # Export issues + memories bd export --all -o full.jsonl # Include infra + templates + gates + memories bd export --scrub -o clean.jsonl # Exclude test/pollution records

bd export [flags]

Flags:

      --all                Include all records (infra, templates, gates, memories)
      --include-infra      Include infrastructure beads (agents, roles, messages)
      --include-memories   Include persistent memories (from 'bd remember') in the export
  -o, --output string      Output file path (default: stdout)
      --scrub              Exclude test/pollution records