kq png
Draws the same picture as kq svg as a PNG image, for a page, a document or a chat that won't show an SVG. It takes every option kq svg takes, --out - aside, and needs a license on any paid plan.
kq png models/my-model # the whole model, to my-model.png
kq png --domain shop/selling --scale 3 models/my-model
kq png --motivation shop --no-realizations models/my-model # the influence chain alone
kq png --value-stream shop/order models/my-model # a value stream, stage by stage
kq png --impact-map shop/growth --no-components models/my-model # a goal's impact map, down to what the organization does
kq png --env shop/PRD models/my-model # what runs in PRD, and how many of each
kq png --process shop/fulfil models/my-model # a business process, and the parties it exchanges messages with
kq png --data-flow shop/order/pay models/my-model # a stage's data: where it sits, how copies are kept, what moves it
kq png --scenario shop/checkout models/my-model # a scenario as a sequence, step by step
kq png [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. |
--scale <n> | Pixels to each unit of the drawing, more than 0 and at most 8. Default 2. |
--out <file> | Where to write. 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 |
An image larger than 16000 pixels on a side is not drawn; give a smaller --scale. The fonts are built in, so the image looks the same on every machine, and the same model and options give the same file: it carries the view's title and description, and no date. kq png comes from the package @extenza-works/kanoniq-export-png; see Installing.
© 2026 Extenza Works. All rights reserved.