Skip to content

archidocs export

Render a View, or every Saved View, to an SVG or PNG picture.

archidocs export <view-id> [--format svg|png] [--out <file>] [--direction TB|BT|LR|RL] [--theme light|dark] [--label <text>]
archidocs export --all-saved --out <dir> [--format svg|png] [--direction TB|BT|LR|RL] [--theme light|dark] [--label <text>]

Write the C2 Generated View, every System and Service, to c2.svg in the current folder.

Terminal window
archidocs export c2

Write one System’s Services, the System named by its Qualified id, laid out top to bottom in the dark palette.

Terminal window
archidocs export c2/digital:internet-banking --direction TB --theme dark

Write a Saved View, here a Dynamic View, as a PNG.

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

Write every Saved View into views/, one picture each, named by its id.

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

Write an Environment’s Deployment View with a line of your own under the title, in place of the commit and date.

Terminal window
archidocs export deployment/prod --label "Big Bank · v1.2.0"
Argument Meaning
<view-id> The View: c1, c2, c2/<system>, c3/<service>, deployment/<environment>, or a Saved View as project:view-id.

--format svg|png · Default: svg.

The picture format.

--out <file> · Default: <view-id>.<format> in the current folder.

The file to write; with --all-saved, the folder to write each picture into.

--direction TB|BT|LR|RL · Default: a Saved View’s own direction, else LR.

The layout direction: top to bottom, bottom to top, left to right or right to left. Dynamic Views ignore it.

--all-saved · Off by default.

Render every Saved View into the --out folder, one picture each.

--theme light|dark · Default: light.

The palette: the viewer’s light tokens, or its Night shift dark ones.

--label <text> · Default: the Workspace, short commit and date.

The line under the title, such as Big Bank · v1.2.0, in place of the source line.

Code Meaning
0 Each picture was written, and its path printed.
1 The Workspace has errors. They are printed as check prints them, and nothing is exported.
2 It could not run: an unknown flag, a flag missing its value, an unknown format, direction or theme, an unknown View, a View together with --all-saved or neither of them, --all-saved without --out, or no Workspace found.

Exit 2 prints the reason to stderr as archidocs: <message>, and after most mistakes in the command line, the usage summary.

Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.