vendor
Manage the project-wide snapshot of remote inputs consumed by Nyl rendering.
The commands require a [vendor] section in nyl.toml. nyl init --vendor <MODE> writes that section for a new project.
nyl vendor
Section titled “nyl vendor”Discover remote inputs through the authoritative DeploymentTarget rendering pipeline and materialize them into the configured directory:
nyl vendornyl vendor --target staging --target productionnyl vendor --refreshWith no --target, sync replaces the lock with the artifacts required by all
configured targets. A targeted sync updates the selected targets while
preserving other lock entries. Normal sync prefers an existing valid vendor
entry, then the exact source cache, then its remote origin. --refresh skips
the existing vendor entry and source cache and retrieves upstream again.
Progress options match the tree commands: --progress bar, plain, or off.
nyl vendor --check
Section titled “nyl vendor --check”Verify that the snapshot completely covers the selected targets:
nyl vendor --checknyl vendor --check --target productionThe check is network-free, with one exception: targets with fromPublication
Release inputs refresh their publication branch when they can and otherwise use
the cached head, so the check covers the state the next render reads. Without
either, those inputs are unbound and fall back to their defaults. Publication
state is never written to the snapshot. The check validates artifact digests and sizes, detects Git
LFS pointer files that have not been materialized, and checks the generated
.gitattributes file. An untargeted check also reports lock entries that are
not referenced by any configured target; a targeted check leaves entries for
other targets alone.
When artifact or schema files are not referenced by the vendor lock or schema
indexes, the check prints their count and suggests nyl vendor --prune.
These unused files do not make the check fail and are left untouched.
nyl vendor --prune
Section titled “nyl vendor --prune”Delete artifact files that are not referenced by vendor/lock.yaml:
nyl vendor --prunePrune first synchronizes every configured target, then removes artifacts that
are absent from the resulting lock. It cannot be combined with --target or
--check; --refresh may be used to retrieve every input again before pruning.
See Remote artifact vendoring for the modes and Vendored remote inputs for resolution and Git LFS behavior.
Validation schemas
Section titled “Validation schemas”Set validation.kubeconform.builtin_schemas to "vendor-used" to materialize
required builtin schemas, or "vendor-all" to materialize complete schema
directories for every selected workload and catalog Kubernetes version. Both
modes require vendored builtin schemas during validation. The default "cached"
mode permits validation to download builtin schemas into a disposable cache.
Complete directory inventories and schema digests let --check verify
"vendor-all" coverage without network access. --refresh retrieves inventories
and schemas again. Cluster captures are read-only inputs
whose referenced blobs survive pruning. See
Manifest validation for the offline workflow.