Update nodes, relationships, and document metadata
Update specified fields on a node. Throws if the node is not found.
Library function: src/operations/updateNode!updateNodeOp
spm update node <id> [options]
| Argument | Description |
|---|---|
<id> |
node ID to update |
| Flag | Description | Required |
|---|---|---|
--path |
SysProM document path (auto-detected if omitted) | |
--json |
output as JSON | |
--dry-run |
preview changes without saving | |
--sync |
sync to markdown directory after saving | |
--description |
update node description | |
--status |
update node status | |
--context |
update node context | |
--rationale |
update node rationale | |
--lifecycle |
set lifecycle state (key=value format) |
Valid status:
proposed, accepted, active, implemented, adopted, defined, introduced, in_progress, complete, consolidated, experimental, deprecated, retired, superseded, abandoned, deferred
Add a relationship to the document. Throws if either endpoint node does not exist, endpoint types are invalid, or the relationship is a duplicate.
Library function: src/operations/addRelationship!addRelationshipOp
spm update add-rel <from> <type> <to> [options]
| Argument | Description |
|---|---|
<from> |
source node ID |
<type> |
relationship type |
<to> |
target node ID |
Valid type:
refines, realises, implements, depends_on, constrained_by, affects, supersedes, must_preserve, performs, part_of, precedes, must_follow, blocks, routes_to, governed_by, modifies, triggered_by, applies_to, produces, consumes, transforms_into, selects, requires, disables, influence
| Flag | Description | Required |
|---|---|---|
--path |
SysProM document path (auto-detected if omitted) | |
--json |
output as JSON | |
--dry-run |
preview changes without saving | |
--sync |
sync to markdown directory after saving |
Remove a relationship matching from, type, and to. Throws if the relationship is not found.
Library function: src/operations/removeRelationship!removeRelationshipOp
spm update remove-rel <from> <type> <to> [options]
| Argument | Description |
|---|---|
<from> |
source node ID |
<type> |
relationship type |
<to> |
target node ID |
| Flag | Description | Required |
|---|---|---|
--path |
SysProM document path (auto-detected if omitted) | |
--json |
output as JSON | |
--dry-run |
preview changes without saving | |
--sync |
sync to markdown directory after saving |
Update metadata fields. Returns a new document.
Library function: src/operations/updateMetadata!updateMetadataOp
spm update meta [options]
| Flag | Description | Required |
|---|---|---|
--path |
SysProM document path (auto-detected if omitted) | |
--json |
output as JSON | |
--dry-run |
preview changes without saving | |
--sync |
sync to markdown directory after saving | |
--fields |
metadata field updates (key=value format) | Yes |