Skip to manual
gluon

CLI reference

gluon validate

Validate a package directory. Exit 1 when errors exist, 0 when only warnings do.

Model author or developer

Usage

Run it as gluon validate (in the repository, cargo run -p gluon-cli -- validate).

Console / text
Validate a package directory. Exit 1 when errors exist, 0 when only warnings do

Usage: gluon validate [OPTIONS] <PATH>

Arguments:
  <PATH>

Options:
      --json  One JSON object per line
      --ci    Plain output, no colour, non-zero exit on errors
  -h, --help  Print help

What it reads and writes

It reads every YAML file under the package folder and writes nothing. Each problem prints as file:line:col: severity code message, with a suggested fix where there is one, and the summary line goes to stderr. --json prints one diagnostic per line in the shape the API returns. A folder with no resources also exits 1. It needs no database. --ci changes nothing today: the output is always plain and the exit code is always set.

gluon validate on the Contoso example: its diagnostics and summary line.
gluon validate on the Contoso example: its diagnostics and summary line.