cds compile --to mermaid became a built-in compile target, emitting a Mermaid class diagram from a model. The 8.x line reached npm on 2024-07-12.
Advice that a diagram needs an external script or a paid tool. It needs neither, for a class diagram.
Turning a CDS model, or the classes and tables of ABAP code, into a picture you can read (entities, their elements and the associations between them) so a newcomer can see the shape of a domain without reading every source file.
@sap/cds-dk The command line client and development toolkit for CAP projects, with the commands cds build, cds deploy, cds watch and cds add among them.
Not covered: It stops at one renderer and one shape: a class diagram in Mermaid text. Crow's-foot ER notation, PlantUML output and rendering to an image are not compile targets.
Both are present. How they came to coexist is not established — the community script and the compile target overlap in time, and this atlas has no evidence about which influenced which.
cds compile --to mermaid became a built-in compile target, emitting a Mermaid class diagram from a model. The 8.x line reached npm on 2024-07-12.
Advice that a diagram needs an external script or a paid tool. It needs neither, for a class diagram.
capability:model-visualisation