Basic usage: fc4 OPTIONS PATH [PATH...]
-f | --format
, -s | --snap
, and -r | --render
may be specified (at
least one is required)When invoked with the -w | --watch
option, instead of immediately processing the diagrams and
exiting, the tool will start up in a persistent mode, watching the YAML files and processing them
when they’re changed. To exit, press ctrl-c on your keyboard.
fc4 -r my-diagram.yaml
or fc4 --render my-diagram.yaml
would render the
specified diagram-f | --format
Reformats each specified Structurizr Express YAML file as described above.
-r | --render
Renders each specified Structurizr Express YAML file as described above.
png
extension
docs/spline_reticulator_01_context.yaml
yields docs/spline_reticulator_01_context.png
-o | --output-formats
-s | --snap
If specified, elements in diagrams will be snapped to a virtual grid.
-o FORMATS | --output-formats FORMATS
Specifies the output format(s) for rendering diagrams.
-r | --render
is specifiedpng
and svg
+
(plus sign) and ,
(comma)png
Here are some examples of valid ways to use this option:
-o png
-o svg
-o png+svg
-o svg,png
--output-formats=svg+png
--output-formats png,svg
-w | --watch
If specified, the tool will start up in a persistent mode and watch the YAML files in/under the specified paths for changes. When a file is changed, the tool will process it according to the feature options, at least one of which is required. In this mode, the tool does not process any files when first invoked.
E.g. fc4 -fsrw .
would watch the current directory and all sub-directories, recursively, for
changes to diagram files; when a change is observed the diagrams, would be formatted,
snapped, and rendered.
-h | --help
Prints out usage information and exits.
-d | --debug
Enables a debug mode of dubious utility.