Runs one CLI command and returns its exit code: 0 on success, 2 when the API rejected the key, 1 for other errors. verify returns 1 when the check fails. Errors go to io.stderr as JSON. It never calls process.exit.
verify
io.stderr
process.exit
The arguments after pai.
pai
The environment to read settings from.
Where output goes, and whether stderr is a terminal (for progress lines).
Runs one CLI command and returns its exit code: 0 on success, 2 when the API rejected the key, 1 for other errors.
verifyreturns 1 when the check fails. Errors go toio.stderras JSON. It never callsprocess.exit.