Rename a node ID across all references in the document. Updates the node's own ID, relationships, scope, includes, operations targets, external references, and recursively into subsystems.
Library function: src/operations/rename!renameOp
spm rename <old-id> <new-id> [options]
| Argument | Description |
|---|---|
<old-id> |
Current node ID |
<new-id> |
New 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 |