How can I generate a UML sequence diagram from a file containing a textual representation of my process, with command-line tools in Linux?
To begin your UML diagram in Visio, you need to launch the tool on your device and go to the 'New' option of the file. You should select the UML diagram and choose between the metric or US units. Create the Diagram: Click on the Create option.
Although PlantUML is listed in the accepted answer (among many other tools) it merits more attention.
In addition to being easily wrapped into a command line tool, PlantUML also has
However PlantUML comes as a java archive so the following setup may be required:
java and graphviz are available as packages for the major linux distros. PlantUML itself is available for Fedora and Ubuntu.
If your distribution does not provide a package, download a jar file from the main site and wrap as a bash script.
A bash wrapper (as follows) can be stored in a file named plantuml on your path i.e. one of the directories listed by echo $PATH
. Don't forget to make it executable with chmod u+x plantuml
.
#!/bin/bash
# from the vim syntax plugin README at aklt/plantuml-syntax on github
java -jar $HOME/path/to/plantuml.jar -tsvg $@
Then run plantuml apple.uml berry.uml
and plantuml will create apple.svg berry.svg.
There are many (many=more than 10) tools for this.
See a complete list.
Not sure if it's what you want, but UMLGraph can generate sequence diagrams using graphviz and ghostscript...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With