tynd validate
tynd validatetynd validate --citynd validate --jsonValidation is project-scoped. It does not probe WebView, registry, network, or globally installed installer/signing tools.
Local mode
Section titled “Local mode”Errors:
- no supported
tynd.config.*file; - config cannot load, merge, or validate;
- configured backend file is missing.
Warnings:
- configured
frontendDirdirectory is missing; package.jsonis missing;- a source file value-imports
@tynd/plugin-<api>(or its/client) while that plugin is not declared inplugins; the call would fail at runtime withapi_disabled, and the warning suggeststynd add <api>. Type-only imports are ignored; - the app uses
fs,http,processorshellAPIs (declared inapis/pluginsor imported from@tynd/plugin-<api>) or a plugin other than the host-backed official plugins (any@tynd/plugin-*package outside the API catalog, such as@tynd/plugin-sql), and nosecuritypolicy is configured, so resource scopes are open. The warning goes away once a source file passessecuritytoapp.start. Configureallowlists, see Security.
Warnings do not fail local validation.
CI mode promotes missing frontend/package inputs to errors and additionally requires:
.bun-versionexists;- Bun resolves and matches the pin;
- the effective native host plan resolves;
- the Tynd host sources (
@tynd/host-src) are installed, otherwise it reportsTynd host sources are not installedwith the install command; tynd-bundlerresolves.
validate --ci does not require a compiled host (the host is compiled by tynd build), and does not validate bun.lock, run an application typechecker, build frontend/backend assets, invoke Cargo, check the Rust version, or inspect installer toolchains.
| Flag | Effect |
|---|---|
--cwd <dir> |
Project directory |
--json |
Emit { ok, mode, errors, warnings } |
--ci |
Require reproducible native build inputs |
Any error produces a non-zero exit code.