Skip to main content
Generated from bd help --doc create. Create a new issue (or batch from markdown/graph JSON)
Aliases: new Flags:
Graph plan schema (--graph): bd create --graph plan.json creates a whole issue graph atomically from a JSON plan. Node field names follow the issue model’s JSON tags (the same names bd show --json emits), and every field single-issue bd create can set is addressable from a plan — plus an initial status and pinned, which bd create has no flags for:
Node notes:
  • key is a plan-local symbolic name; the result maps each key to the minted issue ID. id optionally pins an explicit issue ID instead (must match the database prefix, like bd create --id, and must not already exist — a plan never overwrites an existing issue).
  • parent_key (a plan node key) or parent_id (an existing issue ID) adds a parent-child dependency on the created node.
  • parent and estimate are accepted aliases for parent_key and estimated_minutes; the canonical field wins when both spellings are set.
  • status sets the initial status (default open, or deferred when defer_until is in the future). Nodes created closed get closed_at auto-filled. Timestamps are RFC3339; relative forms like +6h are not accepted in plans.
  • ephemeral / no_history override the plan-wide --ephemeral / --no-history flags per node (mutually exclusive per node; in proxied-server mode the effective storage class must be uniform across the plan).
  • event_kind, actor, target, and payload require "type": "event".
  • metadata accepts arbitrary JSON values; metadata_refs values name other node keys and are replaced with their minted IDs after creation.
  • Unlike bd create --parent, graph children do not inherit parent labels and receive flat (non-hierarchical) IDs; plans are explicit artifacts.
Edge notes:
  • type defaults to blocks. parent_key/parent_id on nodes already create parent-child edges; don’t repeat them in edges.
  • gate (all-children | any-children) and spawner_key/spawner_id attach fanout-gate metadata to waits-for edges, mirroring --waits-for/--waits-for-gate. The to endpoint of a waits-for edge is the spawner (gate evaluation watches its children), so spawner_key must match to_key and spawner_id must match to_id; they exist to make plans self-documenting. Since an explicit to_id overrides to_key as the target, spawner_key cannot be combined with to_id — use spawner_id.
  • Edges with ready-work-affecting types (blocks, waits-for, …) may not duplicate or reverse a parent_key/parent_id relationship, and a parent may not be connected to its own child through them.
  • thread_id threads conversation edges (e.g. replies-to).
Comments cannot be created from a plan; use bd comments add after creation. Model fields without bd create flags (sender, work_type, is_template, await_*, bonded_from, source_*) are likewise not settable from plans.