Read-only command. Parses an application’s
infrastructure.ts with the codemod engine and reports whether it is valid. It does not query AWS or change any files.Prerequisites
Prerequisites
- An application created with
fjall create app, so aninfrastructure.tsfile exists. - Run the command from your project root (where the
fjall/directory lives). - For
--deepvalidation, the application’s TypeScript toolchain must resolve (fjallworkspace dependencies installed). Node 22 or later is required.
Validate an application
infrastructure.ts for a single application:
tsc --noEmit:
--app flag is required. Without --deep, the command parses the file only. With --deep, it additionally surfaces any TypeScript type errors.
What Happens
- Resolves the
infrastructure.tspath for the application you pass to--app. - Parses the file with the codemod engine (an AST parser, no AWS calls).
- Reports
Parse: OKwhen the file is structurally valid. - With
--deep, runstsc --noEmitand reportsTypecheck: OKorTypecheck: FAILEDwith the type errors.
infrastructure.ts, or touches the .fjall history directory. There is nothing to dry-run, because nothing is mutated.
A successful parse prints the file path:
fjall validate into a CI gate before fjall deploy.
Agent mode
Pass--agent to emit structured output for AI agents. The result includes parse, typecheck (ok, failed, or skipped when --deep is absent), and the resolved file path. A failed deep type-check exits non-zero.
Options
| Option | Description | Default |
|---|---|---|
-a, --app <name> | Application to validate. Required. | None |
--deep | Also run tsc --noEmit and surface any type errors. | false |
-v, --verbose | Enable verbose logging. | false |
--non-interactive | Force plain CLI output (no UI). | false |
--agent | Enable agent output mode. | false |
--budget <level> | Output budget: minimal, compact, or a token count. | None |
--fields <fields> | Request additional fields in the output. | None |
--full | Disable content truncation. | false |
Next Steps
fjall add
Add a resource to an application’s infrastructure.
fjall list
List the resources declared in an application’s infrastructure.
fjall deploy
Deploy a validated application’s infrastructure to AWS.
Add resources
Learn how resources are declared and managed.