Skip to main content
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

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, preprocessorspreprocessor and pp, post, postproc, postprocessorspostprocessor for lua push; pre, preprocessors and pp, post, postprocessors for lua deploy, lua test, and lua logs --type.

Arguments

Accepted spellings, both commands: show, infoview; list-versionsversions; publishdeploy; on, enableactivate; off, disabledeactivate; rm, remove, deldelete.

Options

Examples

List the preprocessors and whether each is deployed.
Output
List the postprocessors the same way.
Output
Make the newest pushed preprocessor version live from CI.
Take a postprocessor out of the response path without deleting it.
Check what a processor did to real traffic.

Exit codes

The full table is in Errors and exit codes.

See also