curb hook

curb hook

Runs the agent’s afterCall or afterEvaluation once, in this process, with the project’s .env. Nothing else fires a hook on your machine. Exits 1 when the hook failed (After-call code).

npx curb hook <afterCall|afterEvaluation> --call <file>

Options

OptionWhat it does
--call <file>A JSON file holding a whole event, or a call with the fields the hook reads

Example

npx curb hook afterCall --call fixtures/call.json

Version history

VersionChanges
v1.15.0curb hook introduced