LinuxCommandLibrary

plantuml

Create UML diagrams from a plain text language and render them in different formats.

TLDR

Render diagrams to default format (PNG)

$ plantuml [diagram1.puml] [diagram2.puml]
copy


Render a diagram in given format (e.g. png, pdf, svg, txt)
$ plantuml -t [format] [diagram.puml]
copy


Render all diagrams of a directory
$ plantuml [path/to/diagrams]
copy


Render a diagram to the output directory
$ plantuml -o [path/to/output] [diagram.puml]
copy


Render a diagram without storing the diagram's source code (Note: It's stored by default when the -nometadata option isn't specified)
$ plantuml -nometadata [diagram.png] > [diagram.puml]
copy


Retrieve source from a plantuml diagram's metadata
$ plantuml -metadata [diagram.png] > [diagram.puml]
copy


Render a diagram with the configuration file
$ plantuml -config [config.cfg] [diagram.puml]
copy


Display help
$ plantuml -help
copy

Copied to clipboard