CLI reference

Installed binary: glina. In a checkout, replace glina with node pipeline/cli.js. Successful commands print JSON to stdout except help, or the same fields as path: value lines with --text; operational progress and refusals go to stderr. --help anywhere on the line prints help and runs nothing: the whole command table at the top level, and only that command's row after a command (glina doctor --help); both are rendered from one table in the CLI.

Argument parsing is intentionally small: --name value becomes a string, a flag without a following value becomes true, and remaining words are positional. Unknown options are ignored by commands that do not read them.

Command tree

MCP protocol method names and MCP tool names are documented separately; they are not human Glina CLI command paths.

Exit codes

Code Meaning
0 Command completed, health passed, or gate accepted.
1 Runtime/config/integration error, a failed doctor check, or gate refusal.
2 CLI usage error or unknown command.

An unknown command prints unknown command: <name> followed by usage and exits 2.