kq portal:build
Builds the static site of the repository's navigation pages, read from portal/: their tiles, and the editor behind each view tile. It needs the Portal package; without it, it says so, builds nothing and exits 3. Writing pages, and what this command reports, is in The portal.
kq portal:build --out <dir> [options] <path>
Arguments
| Argument | Is |
|---|---|
<path> | A file or folder of the repository to build the site of. |
Options
| Option | Does |
|---|---|
--out <dir> | Where to write the site. Cleared first; refused when it is the repository, holds it, or holds files kq portal:build did not write. |
--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 |
kq portal:build models/my-model --out site
It builds the model from model/ and the pages from portal/, writes nothing into your repository, and stops on any error in the model or the pages. It prints your policy findings too, and none of them stops it. --out is emptied first, but only if kq portal:build wrote it; anything else is refused, as is a --out that is the repository or holds it. kq portal:build comes from the package @extenza-works/kanoniq-export-portal; see Installing.
© 2026 Extenza Works. All rights reserved.