2020-05-12 22:47:54 +01:00
|
|
|
# plantuml
|
|
|
|
|
|
|
|
> Create UML diagrams from a plain text language and render them in different formats.
|
|
|
|
> More information: <https://plantuml.com/en/command-line>.
|
|
|
|
|
|
|
|
- Render diagrams to default format (PNG):
|
|
|
|
|
|
|
|
`plantuml {{diagram1.puml}} {{diagram2.puml}}`
|
|
|
|
|
|
|
|
- Render a diagram in given format (e.g. `png`, `pdf`, `svg`, `txt`):
|
|
|
|
|
2020-08-01 18:32:30 +01:00
|
|
|
`plantuml -t {{format}} {{diagram.puml}}`
|
2020-05-12 22:47:54 +01:00
|
|
|
|
|
|
|
- Render all diagrams of a directory:
|
|
|
|
|
|
|
|
`plantuml {{path/to/diagrams}}`
|
|
|
|
|
|
|
|
- Render a diagram to the output directory:
|
|
|
|
|
|
|
|
`plantuml -o {{path/to/output}} {{diagram.puml}}`
|
|
|
|
|
2024-05-10 17:26:06 +01:00
|
|
|
- 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}}`
|
|
|
|
|
|
|
|
- Retrieve source from a `plantuml` diagram's metadata:
|
|
|
|
|
|
|
|
`plantuml -metadata {{diagram.png}} > {{diagram.puml}}`
|
|
|
|
|
2020-05-12 22:47:54 +01:00
|
|
|
- Render a diagram with the configuration file:
|
|
|
|
|
|
|
|
`plantuml -config {{config.cfg}} {{diagram.puml}}`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`plantuml -help`
|