Skip to content

Export diagrams

archidocs export draws a View as a picture, styled like the viewer: SVG for docs and wikis, PNG for slides and chat. Every diagram on this site is drawn this way.

The Kitchen sink's Customer places an order: a sequence chart with a call, a derived edge, an event through the broker and a reply.The Kitchen sink's Customer places an order: a sequence chart with a call, a derived edge, an event through the broker and a reply.
Open in the live viewer ↗

Name the View: a Generated View (c1, c2, c2/<system>, c3/<service>, deployment/<environment>) or a Saved View by its Qualified id:

Terminal window
archidocs export c2
Terminal window
archidocs export payments:make-a-payment --format png --out make-a-payment.png

Without --out, the picture is written to <view-id>.<format> in the current folder.

Terminal window
archidocs export --all-saved --out views

writes one picture per Saved View into views/, named by its id with : and / turned into -. This is what the Action’s images input publishes. See Saved View images.

  • --theme dark draws it in the viewer’s dark Night shift palette, for dark slides and pages.
  • --direction LR lays a structural View out left to right; TB, BT and RL are the others. Dynamic Views ignore it.
  • --label "Big Bank · v1.2.0" replaces the line under the title, which otherwise names the Workspace, the short commit and the date.

Each is in the archidocs export reference.

The viewer downloads the View on screen as SVG or PNG too, with what is open and the Lens as they are. Use export when a picture should be rebuilt from the Model, in CI or a docs build.