openplanr diagram
Create, verify, inspect, and rerender offline professional diagrams
openplanr diagram [options] [command]Commands
newCreate a canonical editable diagram bundle
editOpen the local owner studio for an existing diagram
applyPreview a scoped edit, then explicitly accept that preview
renderRender a verified offline diagram set
inspectInspect source or generated manifest custody
checkValidate source or verify generated bytes against their manifest
galleryList the searchable diagram grammar and primitive gallery
rerenderRerender after an intentional source edit
openplanr diagram new
Create a canonical editable diagram bundle
openplanr diagram new [options] <path>| Argument | Description |
|---|---|
pathRequired | canonical diagrams/{slug}/{slug}.planr-diagram-bundle.json path |
| Option | Description |
|---|---|
--title <title> | diagram title |
--json | output one stable machine envelope |
openplanr diagram edit
Open the local owner studio for an existing diagram
openplanr diagram edit [options] <path>| Argument | Description |
|---|---|
pathRequired | canonical diagram bundle path |
| Option | Description |
|---|---|
--json | output one stable machine envelope |
openplanr diagram apply
Preview a scoped edit, then explicitly accept that preview
openplanr diagram apply [options] <path>| Argument | Description |
|---|---|
pathRequired | canonical diagram bundle path |
| Option | Description |
|---|---|
--transaction <file> | typed diagram-edit-transaction JSON |
--dry-run | preview semantic and layout changes without applying |
--accept <preview-token> | apply the exact previewed transaction |
--json | output one stable machine envelope |
openplanr diagram render
Render a verified offline diagram set
openplanr diagram render [options] <input>| Argument | Description |
|---|---|
inputRequired | canonical .planr-diagram.json or Mermaid source |
| Option | Description |
|---|---|
--slug <slug> | override the output slug |
--output <directory> | output root; defaults to the repository root |
--json | output one stable machine envelope |
openplanr diagram inspect
Inspect source or generated manifest custody
openplanr diagram inspect [options] <input-or-manifest>| Argument | Description |
|---|---|
input-or-manifestRequired | diagram source, manifest, or generated diagram directory |
| Option | Description |
|---|---|
--json | output one stable machine envelope |
openplanr diagram check
Validate source or verify generated bytes against their manifest
openplanr diagram check [options] <input-or-manifest>| Argument | Description |
|---|---|
input-or-manifestRequired | diagram source, manifest, or generated diagram directory |
| Option | Description |
|---|---|
--json | output one stable machine envelope |
openplanr diagram gallery
List the searchable diagram grammar and primitive gallery
openplanr diagram gallery [options]| Option | Description |
|---|---|
--type <type> | filter by grammar, alias, or layout family |
--json | output one stable machine envelope |
openplanr diagram rerender
Rerender after an intentional source edit
openplanr diagram rerender [options] <manifest>| Argument | Description |
|---|---|
manifestRequired | generated diagram manifest |
| Option | Description |
|---|---|
--accept <source> | choose ir, mermaid, or excalidraw when source branches conflict |
--json | output one stable machine envelope |