Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

check

gumcli check <project.gumj> [--json]

Loads a Gum project and reports all errors, including malformed XML in element files, missing referenced files, and semantic errors such as invalid base types and missing behavior instances. Code files left behind by deleted elements are reported as GUM0005 warnings (see Orphaned Code Files). Available in December 2026, or now if building Gum from source.

Options

  • <project.gumj> — Path to the .gumj or .gumx project file. An element file (such as .gucj or .gusx) is rejected with exit code 2 and a message naming the project file. Available in December 2026, or now if building Gum from source.

  • --json — Output errors as a JSON array instead of human-readable text

Examples

gumcli check MyProject/MyProject.gumj
gumcli check MyProject/MyProject.gumj --json

Output

No errors (human-readable):

No errors found.

Errors found (human-readable):

error: ButtonComponent: ButtonComponent has a base type of ButtonBase which does not exist
warning: SliderComponent: SliderComponent references "Textures/Thumb.png", which was not found on disk.

1 error(s), 1 warning(s) found.

Each line follows the format: <severity>: <element>: <message>

JSON output:

code is the error's stable code, such as GUM0006. details holds the values the error is about, with fields that depend on the code, or null when the code has none. Match on code and details rather than message in scripts, because message wording can change between releases.

Exit Codes

Code
Meaning

0

No errors found

1

One or more errors found

2

Project file could not be loaded

Warnings are included in the output but do not cause a non-zero exit code. Only items with severity Error result in exit code 1.

Last updated

Was this helpful?