Commands
Commands grouped by what they are for. Each page documents one command or a closely related pair.
Available Commands
Section titled “Available Commands”- Project setup: create and check a project.
init- Initialize a Nyl projectcreate and delete- Add or remove GitOps resource source filesvalidate- Validate project configurationschema- Generate project and resource schemas for editors and CI
- Project inputs: inspect resources and pin what rendering reads.
get and update- Inspect resources, capture cluster capabilities, and move source locksvendor- Snapshot and verify remote renderer inputs
- Kubernetes Rendering: act on a cluster directly, through the shared rendering pipeline.
- Kubernetes GitOps: render, compare, and publish a deployment target’s tree.
render-tree- Render a deployment target into a destination treediff-tree- Compare a target’s desired tree with its publication or a source revisionpublish-tree- Publish a target’s tree to its branch with compare-and-swap
- CI integration: report results where reviewers look.
comment- Maintain sticky PR/MR comments on GitHub, GitLab, and Forgejo
- Orchestration (in development): manage environments’ state in Git.
build- Build an artifact from the current checkout without state writesplan- Show what a reconcile would do, without writing anythingreconcile- Execute an environment’s ready units and record the resultsstatus- Report each unit’s state from one snapshot of an environment’s stateverify- Check current receipts for drift and record the observationsteardown- Tear units down, or every unit, and confirm a publication’s removalhold and resume- Freeze a unit so reconcile changes nothing about it, and lift the holdrecover- Clear a unit’s uncertain or failed condition, or accept a checkpointed resultexec- Run a held unit’s native tool with recorded repair contextstate and lease- Create, move, forget, reset, restore, and delete an environment’s state; break a lost lease
Orchestration warnings and errors appear as separate blocks on stderr. Each block
shows a headline, labelled details and actions when available, and a stable code.
Table headings and diagnostic severity use terminal styling when color is enabled;
the same information remains readable without color. JSON reports remain on stdout.
A finding retains its complete code, message, and fix in JSON; optional
title, details, and actions provide presentation fields for the same facts
and remedies. For example, a status check against deleted state reports:
$ nyl status -e dev --color nevererror State for environment 'dev' was deleted
Start over nyl state init -e dev --fresh Decommission remove Environment dev from source
NYL-STATE-DELETEDGlobal Options
Section titled “Global Options”--quiet-unit-output hides public tool output from orchestration units while
keeping their start/end messages. --unit-log-dir DIR appends masked unit logs
to files, independently of console output. See
Following execution for usage.
--verbose / -v
Section titled “--verbose / -v”Enable verbose logging for debugging.
nyl --verbose validatenyl -v init my-app --minimal--color <COLOR>
Section titled “--color <COLOR>”Control when to use colored output. Accepts three values:
auto(default) - Automatically detect if colors should be used based on TTY detectionalways- Always use colors, even when output is redirected to a file or pipenever- Never use colors
This applies to both:
- Colored output from commands (diffs, status indicators, etc.)
- Log messages from
tracing(INFO, WARN, ERROR)
This flag is particularly useful when:
- Redirecting output to a file where ANSI color codes are not desired
- Working in environments where terminal color support is inconsistent
- Forcing colored output in CI/CD pipelines that support ANSI colors
# Disable colors when piping to a filenyl --color never diff | tee output.txt
# Force colors in CI/CDnyl --color always diff
# Auto-detect (default behavior)nyl diff--help / -h
Section titled “--help / -h”Show help information for any command.
nyl --helpnyl create --helpnyl validate --help--version / -V
Section titled “--version / -V”Show the version of nyl.
nyl --versionbuildbuilds a unit artifact locally or pushes it without orchestration state writes.