Referință CLI
Fiecare comandă acceptă și -h/--help. Această pagină este generată
din aceeași ieșire, sincronizată manual cu binarul efectiv compilat, nu
scrisă din memorie.
Flag-uri globale
Secțiune intitulată „Flag-uri globale”Disponibile pentru fiecare comandă:
--config string path to enodia.yaml (default: search standard locations)--settings string path to settings.yaml (default: search standard locations; missing is not an error)enodia collect
Secțiune intitulată „enodia collect”collect only gathers facts: an unreachable target is recorded as anobservation with an error, not treated as a command failure. The exitcode reflects whether collection itself ran, not what it found - thatjudgement is check's job.-o, --output string output file, or - for stdout (default "-")enodia check
Secțiune intitulată „enodia check”check evaluates the patch, lifecycle and newer-branch axes for everytarget as of the moment its data was collected. Without --from itcollects first, in this same process - not a second code path. With--from it reads an existing inventory and only ever reaches the networkfor the lifecycle resolver.
--view selects the table focus: compact (default), lifecycle, drift, orfleet - the offline-only view of version spread across a product'sinstances. When --view is not passed, settings.yaml's render.default_viewapplies instead of the compact default, if set.--fail-on strings escalate an axis value to a hard failure, e.g. --fail-on=patch:behind (repeatable)--from string read an existing inventory instead of collecting--view string table view: compact, lifecycle, drift, or fleet (default "compact")--warn-days int warn this many days before a lifecycle boundary is reachedenodia export
Secțiune intitulată „enodia export”export writes one self-contained file - nothing here serves it; nginx,a cron job, or a systemd timer regenerating it is what does.
--format selects json, prometheus, or html. When --format is not passed,settings.yaml's export.default_format applies instead, if set; thebuilt-in default stays json either way.
--view restricts an html export to one view (compact, lifecycle, drift,or fleet) instead of all four stacked sections; ignored byjson/prometheus, which always carry every observation and assessment.--fail-on strings escalate an axis value to a hard failure (repeatable)--format string output format: json, prometheus, or html (default "json")--from string read an existing inventory instead of collecting-o, --output string output file, or - for stdout (default "-")--view string html only: restrict the report to one view (compact, lifecycle, drift, fleet); default is all four--warn-days int warn this many days before a lifecycle boundary is reachedenodia config
Secțiune intitulată „enodia config”Trei subcomenzi, fără flag-uri proprii în afara celor globale.
enodia config path
Secțiune intitulată „enodia config path”Afișează ce fișier de configurare ar fi folosit efectiv, conform ordinii de căutare curente — consultați Configurare.
enodia config resolve
Secțiune intitulată „enodia config resolve”resolve tries https, then http (never http first - that would put acredential on the wire in the clear), for every target whose addresshas no explicit scheme. It sends no credentials and does not modify theconfig file - it only reports what scheme each target would use.enodia config validate
Secțiune intitulată „enodia config validate”Validează fișierul de configurare și referințele sale la credențiale —
inclusiv dacă numele credentials: declarat al unei ținte se rezolvă
efectiv la o intrare pe care sonda o înțelege, complet offline.
enodia products
Secțiune intitulată „enodia products”Listează fiecare produs acceptat — consultați Produse acceptate pentru tabelul complet.
enodia history
Secțiune intitulată „enodia history”history reads every "*.jsonl" file in --dir and evaluates each oneagainst its own collection time - not today - building one timelineper target ID. Producing that directory needs no code at all, just"enodia collect -o \"$(date +%F).jsonl\"" on a schedule. This command isthe other half: reading many of them back as one history.--dir string directory of dated *.jsonl inventories (required)--fail-on strings escalate an axis value to a hard failure (repeatable)--format string output format: table or json (default "table")-o, --output string output file, or - for stdout (default "-")--warn-days int warn this many days before a lifecycle boundary is reachedenodia serve
Secțiune intitulată „enodia serve”serve collects and evaluates on a timer (--interval) and serveswhatever the last successful cycle produced - a request never triggersa new collection. There is no built-in authentication or TLS: put thisbehind a reverse proxy.
Endpoints: / (HTML, all four views), /report.json, /metrics(Prometheus), /healthz (liveness only - never touches the snapshot).--fail-on strings escalate an axis value to a hard failure (repeatable) - reflected in the served report, not a process exit code--interval duration how often to refresh the snapshot (default 1h0m0s)--listen string address to listen on (default ":8080")--warn-days int warn this many days before a lifecycle boundary is reachedenodia version
Secțiune intitulată „enodia version”Afișează versiunea enodia, commit-ul și data build-ului.
enodia about
Secțiune intitulată „enodia about”Afișează logo-ul enodia împreună cu informațiile despre build: versiunea, commit-ul, data build-ului, versiunea Go, platforma, numărul de produse (sonde), licența și URL-ul repository-ului.
enodia completion
Secțiune intitulată „enodia completion”Generează un script de autocompletare pentru shell. Rulați
enodia completion --help pentru shell-ul specific pe care îl folosiți
(bash, zsh, fish, powershell).