kq svg
Draws a view of the model as an SVG file: the same picture the editor shows, as vector shapes and text that open in a browser, a design tool or slide software. It needs a Kanoniq license on any paid plan, found as described under On the command line; without one it writes nothing, says why, and links to what a paid seat adds.
kq svg models/my-model # the whole model, to my-model.svg
kq svg --domain shop/selling models/my-model # the Selling Domain's layered view, to my-model-shop-selling.svg
kq svg --at to-be models/my-model # the model as it is in the to-be plateau
kq svg --at as-is --to to-be models/my-model # what goes and what arrives between the two
kq svg --lens data --theme dark --out data.svg models/my-model
kq svg --iam-idp shop/customer/staff-directory models/my-model # who signs in through this Identity Provider
kq svg --iam-platform shop/orders models/my-model # who uses this Platform's applications
kq svg --motivation shop models/my-model # why the Shop landscape is the way it is
kq svg --value-stream shop/order models/my-model # what carries each stage of the Order stream
kq svg --impact-map shop/growth models/my-model # whose behavior the Growth goal depends on, and what causes each change
kq svg --env shop/PRD --channels models/my-model # what runs in the Shop ecosystem's PRD stage
kq svg --process shop/fulfil models/my-model # the Fulfil process in BPMN, lane by lane
kq svg --data-flow shop/order/pay models/my-model # where the Pay stage's data sits and what moves it
kq svg --scenario shop/checkout --at to-be models/my-model # the Checkout scenario in the to-be plateau: which system asks or tells which, in what order
kq svg --out - models/my-model > view.svg # to stdout
kq svg [options] <path>
Arguments
| Argument | Is |
|---|---|
<path> | A file or folder of the model to draw. |
Options
| Option | Does |
|---|---|
--at <plateau> | Draw the model as it is in this plateau, by its Code. Default: the initial plateau. |
--to <plateau> | A later plateau: draw the transition from --at to it, with what goes and what arrives marked. |
--domain <path> | Draw the layered view of this Domain, by its path (shop/orders). Default: the whole model. |
--focus <path> | Refocus the whole model on this element. |
--lens <lens> | Which relationships the view draws. One of all, implementation, communication, data. Default all. |
--interfaces <which> | Which Interfaces the view draws. One of all, used, none. Default all. |
--structure | Draw Realization and Containment on the layered view. |
--channels | Draw Channels in their own band on the layered view, or inside their broker on a deployment view. |
--hide-enablers | Leave out the Enablers band, or an Enabler Domain's callers, on the layered view. |
--contexts | Draw each bounded context's boundary on the layered view, and the lines crossing one in the crossing color. |
--functions | Add the layered view's Functions band, each Function over the Components realizing it. |
--iam-idp <path> | Draw the IAM view of this Identity Provider, by its path. |
--iam-platform <path> | Draw the IAM view of this Platform or monolith, by its path. |
--other-providers | Add the other providers' Roles, dimmed, to an Identity Provider's IAM view. |
--job-roles | Add the job roles holding the IAM view's Roles, in a band of their own. |
--motivation <path> | Draw the motivation view of this Ecosystem, by its path. |
--no-realizations | Leave out the motivation view's Realized by band and its lines. |
--value-stream <path> | Draw the value-stream view of this value stream, by its path. |
--impact-map <path> | Draw the impact map of this Goal, by its path. |
--no-components | Leave out the impact map's Built by band and its lines. |
--env <path> | Draw the deployment view of this stage, by its path (shop/PRD). |
--process <path> | Draw the process view of this business process, by its path. |
--data-flow <path> | Draw the data-flow view of this value stream stage, by its path. |
--scenario <path> | Draw the scenario view of this scenario, by its path, at one plateau: it has no transition, so it takes no --to. |
--context-map <path> | Draw the context map of this Ecosystem, by its path, at one plateau: it has no transition, so it takes no --to. |
--theme <theme> | The colors the view is drawn in. One of light, dark. Default light. |
--out <file> | Where to write; - for standard output. Default: |
--license <file> | Read a license from this file, as well as KANONIQ_LICENSE and the configuration directory. Give it more than once for several. |
Environment
| Variable | Does |
|---|---|
KANONIQ_LICENSE | A license's text, read as well as each --license file and the configuration directory. |
KANONIQ_TELEMETRY | off, 0 or false stops kq reporting the run; so does DO_NOT_TRACK=1. |
Exit codes
| Code | Means |
|---|---|
0 | Done |
1 | Failed: the model has an error, a check found a change, or a file could not be read or written |
2 | Usage error: an unknown command or option, a missing or extra argument, a path that does not exist, or an output folder kq will not clear |
3 | A paid feature that no license found grants |
A Code that names no plateau, a --to that is not later than --at, a --to with --scenario, since a scenario is drawn one plateau at a time, or either option on a model whose plateaus don't form a single line, is a usage error, exit 2. The picture's subtitle names the plateau, or both of a transition, As is → To be, and a transition's footnote carries the legend of its markings, − gone + arrived ~ restated ↦ moved, with ⇄ migrated where a Data Entity a data migration covers wears its badge.
The file stands alone: the fonts it uses are inside it, so it looks the same offline and on a machine without them. It is the same every time for the same model and options: it carries no date. Every box and line in it that stands for something in the model carries the UUIDs of what it draws in a data-kq-id attribute, so a script can trace a shape back to the model. kq svg writes nothing into your model's directory.
kq svg comes from the package @extenza-works/kanoniq-export-svg; see Installing.
© 2026 Extenza Works. All rights reserved.