Skip to content

Scripts and CI

Use --json (or -j) for machine-readable output.

Terminal window
aw doctor --json
aw status --json
aw list --json

Add mutations only after inspection works.

  • stdout contains exactly one JSON document followed by a newline.
  • Check the process exit status and the envelope’s ok field.
  • Branch on error.code, not message.
  • Read needed fields and ignore unknown fields.
{
"ok": true,
"command": "status",
"schemaVersion": 1,
"data": {},
"warnings": []
}

Do not parse human prose from stderr as an API.

Use selectors for mutating or expensive work:

Terminal window
aw exec --only arashi-docs --json -- pnpm validate

Pass non-interactive options when a command might prompt, change the parent shell, or launch an application. JSON mode gives hooks immediate EOF. Use --no-hook-input for the same behavior outside JSON mode.

See the command reference for supported JSON modes, command data, warnings, and errors.