Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CLI reference

The structurizrx binary (package structurizr-cli) accepts both .dsl and .json workspace files for every subcommand that takes a file argument.

CommandWhat it does
validateParse + validate; --strict also fails on lint findings; --json emits structured output
renderExport diagrams (materializes generated views first)
serveLive-reloading web viewer with a JSON API
digestCompact plain-text model + view summary, sized for LLM context
queryRun a selector expression against a workspace
exportWorkspace JSON (superset of the Structurizr JSON schema)
docsPrint 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

  • --version prints 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 (.json vs anything else, treated as DSL).