Skip to content
Kubernetes RenderingCLI-First Workflows

CLI-First Workflows

The CLI workflow is useful when you want direct feedback from Nyl before involving a GitOps controller. It is also the right tool for bootstrapping, debugging, test clusters, and one-off operational checks.

Render an input file locally:

Terminal window
nyl render --target dev apps/web.yaml

Filter the rendered output when you only need part of the result:

Terminal window
nyl render --target dev --only-kind Deployment,Service apps/web.yaml

nyl render never connects to Kubernetes: with --target it uses the Cluster’s committed capabilities and renders the Release as render-tree publishes it. For a targetless base render, pass the capabilities explicitly:

Terminal window
nyl render \
--kube-version 1.30.0 \
--kube-api-versions v1,apps/v1 \
apps/web.yaml

Use nyl diff to compare rendered manifests with live cluster state:

Terminal window
nyl diff --target dev apps/web.yaml

For a shorter signal in automation:

Terminal window
nyl diff --target dev --summary apps/web.yaml

Use nyl apply when direct application is intentional, such as during bootstrap or test-cluster setup:

Terminal window
nyl apply --target dev apps/web.yaml

nyl apply tracks release state in Kubernetes Secrets unless --no-release is used. That release state allows Nyl to understand what it previously applied and helps with pruning.

  • Bootstrap ArgoCD or other cluster prerequisites before GitOps is available.
  • Reproduce a CI render locally while debugging a failed rendered-manifest job.
  • Preview generated Helm resources before committing rendered YAML.
  • Test component changes against an ephemeral cluster.
  • Apply temporary environments where a full GitOps loop would be unnecessary.