Docs
Resource

geni resource validate

Validate the local files against the spec, wiring, and TypeScript — without publishing.

geni resource validate [id] [flags]

Ships your local files to the cloud and validates them without publishing: spec compliance, credential and const wiring, and — for code workflows — a server-side TypeScript check (for apps, the design-system lint and handler references; for skills, the SKILL.md frontmatter contract and that every linked file exists). Exits 9 on validation failure, so scripts can gate on it.

This is the real compile gate. Don't run tsc / npm install locally; @general-input/core only resolves server-side, so a local compile always fails on the missing module.

Synopsis

geni resource validate            # uses the marker in cwd
geni resource validate wf_01HX
geni resource validate --json
Arg / FlagNotes
[id]Resource id (wf_ or skl_). Omit to use the marker in --dir.
--dir <path>Resource directory. Defaults to cwd.
--jsonMachine-readable output.

Exit codes

CodeMeaning
0Valid — ready to publish.
9Validation failed (the errors are printed).

A green validate means it's ready to publish.

On this page