# summary

Migrate a drawio ERD to use orthogonal routing, row-level connections, and dagre layout.

# description

Applies best-practice ERD rendering to an existing drawio file: orthogonal edge style, PK/FK row-level connections, label backgrounds, and optional dagre relayout.

# examples

- `sf setup-agents diagram migrate --file docs/architecture/erd.drawio`
- `sf setup-agents diagram migrate --file erd.drawio --relayout`

# flags.file.summary

Path to the drawio file to migrate.

# flags.relayout.summary

Reposition tables using dagre layout engine.

# flags.node-sep.summary

Horizontal separation between nodes (dagre nodesep).

# flags.rank-sep.summary

Vertical separation between ranks (dagre ranksep).

# info.done

Migrated %s: %s edges updated, %s tables repositioned across %s pages.
