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>]Examples
Section titled “Examples”Write the C2 Generated View, every System and Service, to c2.svg in the current folder.
archidocs export c2Write one System’s Services, the System named by its Qualified id, laid out top to bottom in the dark palette.
archidocs export c2/digital:internet-banking --direction TB --theme darkWrite a Saved View, here a Dynamic View, as a PNG.
archidocs export payments:make-a-payment --format png --out make-a-payment.pngWrite every Saved View into views/, one picture each, named by its id.
archidocs export --all-saved --out viewsWrite an Environment’s Deployment View with a line of your own under the title, in place of the commit and date.
archidocs export deployment/prod --label "Big Bank · v1.2.0"Arguments
Section titled “Arguments”| Argument | Meaning |
|---|---|
<view-id> |
The View: c1, c2, c2/<system>, c3/<service>, deployment/<environment>, or a Saved View as project:view-id. |
--format
Section titled “--format”--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
Section titled “--direction”--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
Section titled “--all-saved”--all-saved · Off by default.
Render every Saved View into the --out folder, one picture each.
--theme
Section titled “--theme”--theme light|dark · Default: light.
The palette: the viewer’s light tokens, or its Night shift dark ones.
--label
Section titled “--label”--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.
Exit codes
Section titled “Exit codes”| 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.
See also
Section titled “See also”- Export diagrams: exports one View or every Saved View, with each option shown.
- Publish Saved View images: publishes the pictures with the site, at stable URLs.
- How the Workspace is found: where it looks for
workspace.yaml.
Documents the beta branch at cd98671, ahead of the latest release, v1.4.0.