Skip to content
kix /docs
Install the CLI

Reference CLI

build

Evaluate a cluster and print its rendered Kubernetes manifests as multi-document YAML or a JSON array.

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. text and markdown print YAML.
--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. See Global flags for --override-input.

❱ kix build demo > demo.yaml
❱ kix build demo -o json | jq '[.[] | .kind] | unique'

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