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.
Inspect Rendered YAML
Section titled “Inspect Rendered YAML”Render an input file locally:
nyl render --target dev apps/web.yamlFilter the rendered output when you only need part of the result:
nyl render --target dev --only-kind Deployment,Service apps/web.yamlnyl 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:
nyl render \ --kube-version 1.30.0 \ --kube-api-versions v1,apps/v1 \ apps/web.yamlPreview Cluster Changes
Section titled “Preview Cluster Changes”Use nyl diff to compare rendered manifests with live cluster state:
nyl diff --target dev apps/web.yamlFor a shorter signal in automation:
nyl diff --target dev --summary apps/web.yamlApply Directly
Section titled “Apply Directly”Use nyl apply when direct application is intentional, such as during bootstrap or test-cluster setup:
nyl apply --target dev apps/web.yamlnyl 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.
Typical Uses
Section titled “Typical Uses”- 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.