Skip to content
Install the CLI

Reference CLI

build

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

kix build evaluates a cluster from the flake and prints every rendered manifest to stdout. It does not contact a cluster. Use it to read or pipe the exact objects Kix would deploy.

This page is hand-maintained. Check cli/kix-cli/src/cli.rs and cli/kix-cli/src/commands/build.rs when in doubt.

kix build <CLUSTER> [-o yaml|json] [--flake <FLAKE>] [--no-cache]
Argument or flagDefaultMeaning
<CLUSTER>Cluster name to evaluate. An unknown name fails with the list of available clusters.
-o, --outputyamlyaml prints multi-document YAML. json prints one JSON array of manifests. Other formats are refused.
--flake <FLAKE>.Flake to evaluate.
--no-cacheOffEvaluate from Nix instead of reading the eval cache.

On a terminal, a spinner on stderr shows progress; -q hides it. Stdout carries only the manifests. The Kix library’s warnings about the build go to stderr, even with -q. kix check describes them. See Global flags for --override-input.

❱ kix build demo > demo.yaml
❱ kix build demo -o json

0 when the cluster evaluates, 1 when it does not. An evaluation failure includes constructor validation errors and error-severity scorecard findings.