lua triggers manages triggers: URLs that start an agent turn, run one tool, or start a workflow when something POSTs to them. create prints a URL that works immediately; rotate-token and delete stop the current URL immediately.
Verified against lua-cli 3.33.0.
Synopsis
Description
The command handles two kinds of trigger. A URL trigger is created here withcreate and needs no code; every POST becomes an agent turn that carries the request body and, if you set one, the --instruction text. An SDK trigger is defined with defineTrigger and uploaded with lua push trigger; it adds verify, filter, and transform slots and can start a workflow instead of an agent turn. list shows both, with Type: URL or Type: SDK.
create prints the trigger’s URL; list shows it again. The token inside the URL is the only credential for a URL trigger, so treat it like an API key. If it leaks, rotate-token invalidates it and prints a replacement URL; the old one stops working immediately.
logs prints executions newest first, 20 by default, with a status, the payload and response snippets, the tools the agent used, and for workflow starts the run ID with the lua workflows status command to follow it. With --json it prints the server response unchanged.
activate and deactivate turn a trigger on or off without changing anything else. Requests to a deactivated trigger are recorded as skipped.
delete asks for confirmation unless --force is given, in the non-interactive form too. A trigger with deployed SDK versions is deactivated instead of deleted. Execution history is kept until it expires.
--trigger matches the name or the ID. Every form needs a project directory and a credential. The flags --webhook-id, --connection-id, and --connection, and the actions pause, resume, events, on, off, stop, start, and list-events, belong to integration webhooks: the command prints a pointer to lua integrations webhooks and exits 0 without doing anything.
Execution statuses
Arguments
Accepted spellings:
view, show, ls, l → list; new, add → create; history, executions, runs, log → logs; enable → activate; disable → deactivate; rotate, rotate_token, rotatetoken → rotate-token; rm, remove, del → delete. on and off are not aliases here.
Options
Examples
List triggers as JSON; an agent with none prints an empty array.Output
Exit codes
The full table is in Errors and exit codes.
See also
defineTrigger— SDK triggers withverify,filter,transform, andstartWorkflow- Create a trigger
lua webhooks— endpoints whose response your code ownslua workflows— follow a run a trigger startedlua integrations— integration webhooks from Linear, HubSpot, and other integrations

