Prerequisites
Prerequisites
Diagnose CLI state
fjall doctor takes no arguments and has no subcommands.
What Happens
Every in-process CDK synth that runs without an explicit output directory leaves onecdk.out* directory behind in $TMPDIR. Those directories accumulate and can reach several gigabytes on a machine that synthesises often.
fjall doctor scans $TMPDIR for directories whose name starts with cdk.out, keeps the ones last modified more than 24 hours ago, and totals their size on disk.
Default run (read-only)
The default run deletes nothing. With nothing stale to report:Clean-up run
--clean-cdk-tmpdir deletes the directories it finds:
No stale cdk.out* temp dirs found. and exits.
Dry-run behaviour
--dry-run applies only alongside --clean-cdk-tmpdir. It prints the count and total size, then exits without deleting:
-v, --verbose to list each directory:
-v, --verbose affects the dry-run listing only. The other paths print their summary regardless.
Age threshold
--max-age-hours <n> overrides the 24-hour threshold used by --clean-cdk-tmpdir. The read-only diagnostic pass always uses 24 hours, so --max-age-hours on its own changes nothing.
Agent mode
fjall doctor is a human-only surface with no machine-readable output. Passing --agent, --fields, --budget or --full returns a validation error and the command does not run. Agent mode detected from the environment does not trigger that refusal, so a bare fjall doctor behaves the same inside an agent session as it does in a terminal.
Options
Next Steps
fjall validate
Check an application’s infrastructure, including a local CloudFormation synth with
--deep --synth.fjall drift
Detect and repair differences between your definitions and deployed AWS resources.
fjall deploy
Deploy an application to AWS once local state is clean.
fjall login
Sign in to Fjall and store credentials in
~/.fjall/auth.json (or $FJALL_CONFIG_DIR/auth.json).