Skip to main content
Version: Next

Paid

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

ArgumentIs
<path>A file or folder of the model to draw.

Options

OptionDoes
--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.
--structureDraw Realization and Containment on the layered view.
--channelsDraw Channels in their own band on the layered view, or inside their broker on a deployment view.
--hide-enablersLeave out the Enablers band, or an Enabler Domain's callers, on the layered view.
--contextsDraw each bounded context's boundary on the layered view, and the lines crossing one in the crossing color.
--functionsAdd 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-providersAdd the other providers' Roles, dimmed, to an Identity Provider's IAM view.
--job-rolesAdd 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-realizationsLeave 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-componentsLeave 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: .png, -.png for a Domain's view, -iam-idp-.png or -iam-platform-.png for an IAM view, -motivation-.png for a motivation view, -value-stream-.png for a value-stream view, -impact-map-.png for an impact map, -env-.png for a deployment view, -process-.png for a process view, -data-flow-.png for a data-flow view, -scenario-.png for a scenario view, or -context-map-.png for a context map, in the current directory.
--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

VariableDoes
KANONIQ_LICENSEA license's text, read as well as each --license file and the configuration directory.
KANONIQ_TELEMETRYoff, 0 or false stops kq reporting the run; so does DO_NOT_TRACK=1.

Exit codes

CodeMeans
0Done
1Failed: the model has an error, a check found a change, or a file could not be read or written
2Usage 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
3A 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.