Skip to manual
gluon

CLI reference

gluon compile

Compile a package to Gluon's versioned IR, the `ontology.json` file.

Model author or developer

Usage

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

Console / text
Compile to the versioned IR (compiled/ontology.json)

Usage: gluon compile [OPTIONS] <PATH>

Arguments:
  <PATH>

Options:
  -o <OUT>    Write ontology.json here
  -h, --help  Print help

What it reads and writes

It prints the compiled JSON to stdout, or writes it to the file you give with -o. It loads the package without validating it, so run gluon validate first. It needs no database.

gluon compile printing the IR for the Contoso example.
gluon compile printing the IR for the Contoso example.