| 1 |
=head1 NAME |
| 2 |
|
| 3 |
plantuml - generate UML diagrams from a text description |
| 4 |
|
| 5 |
=head1 SYNOPSIS |
| 6 |
|
| 7 |
B<plantuml> [I<options>] I<files/dirs>... |
| 8 |
|
| 9 |
=head1 DESCRIPTION |
| 10 |
|
| 11 |
I<PlantUML> is used to draw UML diagrams using a simple and human |
| 12 |
readable text description. |
| 13 |
|
| 14 |
Note that B<graphviz> is required to be installed for generation of |
| 15 |
all diagrams except sequence diagrams. |
| 16 |
|
| 17 |
When files/directories are given, they are processed in batch mode. |
| 18 |
Otherwise, a GUI window appears. It allows user to browse directories and |
| 19 |
view diagrams generated from suitable files (must have one of the |
| 20 |
following extensions: I<.txt>, I<.tex>, I<.java>, I<.htm>, I<.html>, I<.c>, |
| 21 |
I<.h>, I<.cpp>). |
| 22 |
|
| 23 |
You can use the following wildcards in files/dirs: |
| 24 |
|
| 25 |
=over |
| 26 |
|
| 27 |
=item B<*> |
| 28 |
means any characters but '/' |
| 29 |
|
| 30 |
=item B<?> |
| 31 |
one and only one character but '/' |
| 32 |
|
| 33 |
=item B<**> |
| 34 |
means any characters (used to recurse through directories) |
| 35 |
|
| 36 |
=back |
| 37 |
|
| 38 |
=head1 OPTIONS |
| 39 |
|
| 40 |
=over |
| 41 |
|
| 42 |
=item B<-t>I<format> |
| 43 |
|
| 44 |
Generate images in one of the following formats: |
| 45 |
|
| 46 |
=over |
| 47 |
|
| 48 |
=item B<png> |
| 49 |
PNG image (default) |
| 50 |
|
| 51 |
=item B<svg> |
| 52 |
SVG image |
| 53 |
|
| 54 |
=item B<eps> |
| 55 |
EPS image |
| 56 |
|
| 57 |
=item B<pdf> |
| 58 |
PDF image |
| 59 |
|
| 60 |
=item B<vdx> |
| 61 |
VDX image |
| 62 |
|
| 63 |
=item B<xmi> |
| 64 |
XMI file for class diagram |
| 65 |
|
| 66 |
=item B<scxml> |
| 67 |
SCXML file for state diagram |
| 68 |
|
| 69 |
=item B<html> |
| 70 |
HTML file for class diagram |
| 71 |
|
| 72 |
=item B<txt> |
| 73 |
ASCII art |
| 74 |
|
| 75 |
=item B<utxt> |
| 76 |
ASCII art using Unicode characters |
| 77 |
|
| 78 |
=item B<latex> |
| 79 |
LaTeX/TikZ format |
| 80 |
|
| 81 |
=item B<latex:nopreamble> |
| 82 |
LaTeX/TikZ format without preamble |
| 83 |
|
| 84 |
=back |
| 85 |
|
| 86 |
=item B<-output> I<dir>, B<-o> I<dir> |
| 87 |
|
| 88 |
Generate images in the specified directory. |
| 89 |
|
| 90 |
=item B<-config> I<file> |
| 91 |
|
| 92 |
Read the provided config file before each diagram. |
| 93 |
|
| 94 |
=item B<-charset> I<encoding> |
| 95 |
|
| 96 |
Use a specific encoding (default is UTF-8). |
| 97 |
|
| 98 |
=item B<-exclude> I<pattern>, B<-x> I<pattern> |
| 99 |
|
| 100 |
Exclude files that match the provided pattern. |
| 101 |
|
| 102 |
=item B<-metadata> |
| 103 |
|
| 104 |
Retrieve I<PlantUML sources from PNG images.> |
| 105 |
|
| 106 |
=item B<-version> |
| 107 |
|
| 108 |
Display information about I<PlantUML and Java versions.> |
| 109 |
|
| 110 |
=item B<-verbose>, B<-v> |
| 111 |
|
| 112 |
Be more verbose. |
| 113 |
|
| 114 |
=item B<-quiet> |
| 115 |
|
| 116 |
Don't print error messages. |
| 117 |
|
| 118 |
=item B<-keepfiles> |
| 119 |
|
| 120 |
Do NOT delete temporary files after process. |
| 121 |
|
| 122 |
=item B<-help>, B<-h> |
| 123 |
Display a help message. |
| 124 |
|
| 125 |
=item B<-testdot> |
| 126 |
Test the installation of B<graphviz>. |
| 127 |
|
| 128 |
=item B<-graphvizdot> I<path> |
| 129 |
Specify the B<dot> executable path. |
| 130 |
|
| 131 |
=item B<-pipe>, B<-p> |
| 132 |
Use stdin for I<PlantUML> source and stdout for PNG/SVG |
| 133 |
generation. |
| 134 |
|
| 135 |
=item B<-computeurl> |
| 136 |
Compute the encoded URL of a I<PlantUML> source file. |
| 137 |
|
| 138 |
=item B<-decodeurl> |
| 139 |
Retrieve the I<PlantUML> source from an encoded URL. |
| 140 |
|
| 141 |
=back |
| 142 |
|
| 143 |
This list of options is not exhaustive. For more information, run B<plantuml -help>. |
| 144 |
|
| 145 |
For more documentation, see the I<PlantUML>'s website: L<< https://plantuml.com/command-line >>. |
| 146 |
|
| 147 |
=head1 ENVIRONMENT |
| 148 |
|
| 149 |
=over |
| 150 |
|
| 151 |
=item I<DISPLAY> |
| 152 |
|
| 153 |
If not set or empty, uses Java's headless mode to run I<PlantUML>. |
| 154 |
|
| 155 |
=item I<GRAPHVIZ_DOT> |
| 156 |
|
| 157 |
Similarly to B<-graphvizdot>, can be used to specify the path to the B<dot> executable. If both I<GRAPHVIZ_DOT> and B<-graphvizdot> are used, the command-line setting takes the precedence. |
| 158 |
|
| 159 |
=back |
| 160 |
|
| 161 |
=head1 NOTES |
| 162 |
|
| 163 |
The Debian package for I<PlantUML> comes without Easter eggs, XEarth diagram support or inbuilt FTP server, Telnet server or a Sudoku game. |
| 164 |
|
| 165 |
=head1 SEE ALSO |
| 166 |
|
| 167 |
L<graphviz(1)> |
| 168 |
|
| 169 |
=head1 AUTHOR |
| 170 |
|
| 171 |
I<PlantUML> was written by Arnaud Roques L<< <[email protected]> >>. |
| 172 |
|
| 173 |
This manual page was written by Ilya Paramonov L<< <[email protected]> >> |
| 174 |
and updated by Andrej Shadura L<< <[email protected]> >>, for the Debian project (and may be used by others). |