Skip to main content
Version: Next

kq plan

Prints the model's data migrations, gap by gap between its plateaus and in time order within each, and writes nothing. It is free. After each gap's migrations it lists the APIs whose versions the gap changes, each version added or removed with the callers naming it and each call moving between versions.

kq plan [options] [<path>]

Arguments

ArgumentIs
[<path>]A file or folder of the model. Default: the current directory.

Options

OptionDoes
--format <format>How the plan is written: a block of lines per gap, one JSON document of its rows, or the migration plan document in Markdown. One of text, json, markdown. Default text.

Environment

VariableDoes
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
$ kq plan models/meridian-rail
As is (2026-10-01) → Ticketing renewal (2027-09-30): 3 migrations
2027-04-01 – 2027-08-31 Move bookings out of TIX Booking: TIX / TIX DB → Booking service / Booking DB
no dates migrate-platform-ticketing-fare Fare: TIX / TIX DB → Fare engine / Fare DB derived
no dates migrate-platform-ticketing-ticket Ticket: TIX / TIX DB → Booking service / Booking DB derived
Retail API v2 added, named by Web shop; Web shop moves from v1 to v2

Ticketing renewal (2027-09-30) → Fleet twin (2028-06-30): 0 migrations

Each gap names its two plateaus, their dates and how many migrations deliver the later one. Each migration's line gives its dates or no dates, its name, or its Code where it has none, then each Domain Object whose authority it moves, from which Component and Storage to which, and derived where Kanoniq created it and no one has adopted it yet. Within a gap, migrations go by starts, else by by; those with neither come last, and ties go by Code. A derived orphan is not listed.

  • --format json writes the plan as one JSON document on standard output, for a script.
  • --format markdown writes the migration plan document, a section per gap and one per migration with its description and links, the file to attach to a plan or a ticket.

A model with fewer than two plateaus in sequence prints one line saying it has no gaps. It exits 0 whatever the plan holds, 1 when the model does not parse or link, printing its errors as kq build does. The path is any file or folder of the model, the current directory by default.

© 2026 Extenza Works. All rights reserved.