CLI reference
The structurizrx binary (package structurizr-cli) accepts both .dsl and
.json workspace files for every subcommand that takes a file argument.
| Command | What it does |
|---|---|
validate | Parse + validate; --strict also fails on lint findings; --json emits structured output |
render | Export diagrams (materializes generated views first) |
serve | Live-reloading web viewer with a JSON API |
digest | Compact plain-text model + view summary, sized for LLM context |
query | Run a selector expression against a workspace |
export | Workspace JSON (superset of the Structurizr JSON schema) |
docs | Print the DSL cheat sheet |
There’s also structurizrx lsp, which runs the DSL language server over
stdio for editor integration (see the VS Code extension under
editors/vscode in the repository) — it has no user-facing flags and isn’t
covered further here.
Global behavior
--versionprints the binary version;--help(or a subcommand’s--help) prints usage.- File loading picks the DSL parser or the JSON deserializer based on the
file extension (
.jsonvs anything else, treated as DSL).