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 -p dev apps/web.yamlFilter the rendered output when you only need part of the result:
nyl render -p dev --only-kind Deployment,Service apps/web.yamlUse offline mode when you want repeatable rendering without Kubernetes discovery. If nyl.toml defines [project.kubernetes] or [profile.<name>.kubernetes], Nyl uses those values automatically:
nyl render --profile dev --offline apps/web.yamlYou can also pass the target metadata directly on the CLI:
nyl render \ --profile dev \ --offline \ --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 -p dev apps/web.yamlFor a shorter signal in automation:
nyl diff -p 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 -p 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.