lua preprocessors manages the preprocessors that run on every incoming message before the model sees it; lua postprocessors manages the postprocessors that run on every response before it is sent. The two commands take the same actions and differ only in the flag names. deploy, activate, deactivate, and delete change what every end user’s messages pass through as soon as they succeed.
Verified against lua-cli 3.33.0.
Synopsis
- Preprocessors
- Postprocessors
Description
With no action either command opens a menu covering every action. Every action runs against production.view lists the processors of that kind in lua.skill.yaml with their ID, whether a version is deployed, and when.
versions prints a pointer to lua version list: per-primitive history is managed by agent versions.
deploy makes one pushed version live without a confirmation prompt. It is the same operation as lua deploy preprocessor --name <name> --set-version <ver> --force (or lua deploy postprocessor …); lua deploy also records the deployed version in lua.skill.yaml and reports the agent version it promoted.
activate and deactivate turn the processor on or off without changing its version. A deactivated preprocessor no longer sees incoming messages; a deactivated postprocessor no longer sees responses.
delete removes the processor from the server. A processor that has pushed versions is deactivated instead of deleted and stays in lua.skill.yaml until you remove it. delete also resolves processors that exist only on the server.
The name flag matches the processor name or its ID. Every form needs a project directory and a credential.
There is no lua pre or lua pp command. Those spellings are accepted only where a primitive type is expected: pre, preproc, preprocessors → preprocessor and pp, post, postproc, postprocessors → postprocessor for lua push; pre, preprocessors and pp, post, postprocessors for lua deploy, lua test, and lua logs --type.
Arguments
Accepted spellings, both commands:
show, info → view; list-versions → versions; publish → deploy; on, enable → activate; off, disable → deactivate; rm, remove, del → delete.
Options
Examples
List the preprocessors and whether each is deployed.Output
Output
Exit codes
The full table is in Errors and exit codes.
See also
PreProcessorandPostProcessor— the SDK types- Add a processor
- About processors — order, priority, block and proceed, fail-open and fail-closed
lua deploy— the same deploy with the agent version reportedlua logs—--type preprocessorand--type postprocessor

