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.gumjor.gumxproject file. An element file (such as.gucjor.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 --jsonOutput
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
0
No errors found
1
One or more errors found
2
Project file could not be loaded
Last updated
Was this helpful?

