structurizrx export
Export a workspace to JSON.
structurizrx export <file> [--output <path>]
| Flag | Default | Effect |
|---|---|---|
--output, -o | workspace.json | Output file path |
The output is StructurizrX’s model JSON — a superset shape of the upstream
Structurizr JSON schema: every new field
(ports, kind, status, milestones, perspectives on relationships/ports) is
optional and omitted when unset, so tooling that only understands the
upstream schema still gets a workspace it can read; it just won’t see the
extensions.
structurizrx export ws.dsl --output ws.json
Exported workspace to ws.json
export does not materialize generated (auto) views the way
render/serve/digest do — it exports the workspace’s model and views
exactly as authored (or as separately generated and re-imported).