Overview
lua jobs manages scheduled jobs defined with LuaJob. It mirrors the surfaces available for skills (view, versions, deploy, activate, deactivate, delete) and adds two job-specific actions: trigger (manual fire) and history (execution log).
For defining jobs in code, see LuaJob API. For creating jobs dynamically from inside a tool at runtime, see Jobs API.
Subcommands
| Action | What it does |
|---|---|
view | List all jobs defined on the agent. |
versions | List every version of a specific job. |
deploy | Promote a version to active. |
activate | Re-enable a deactivated job. |
deactivate | Pause scheduled execution. Active version retained — re-activate with activate. |
trigger | Manually fire a job once (does not affect schedule). |
history | Print recent execution history with status and timestamps. |
delete | Permanently remove a job and all its versions. |
Options
| Option | Description |
|---|---|
-i, --job-name <name> | Job name. Required for most non-interactive actions. |
-v, --job-version <ver> | Version for deploy. Pass latest to deploy the newest. |
Examples
Triggering vs Deploying
| Command | When to use |
|---|---|
lua jobs trigger -i <name> | Run the job once right now. Useful for ad-hoc runs, smoke-tests after a deploy, and debugging. Schedule is untouched. |
lua jobs deploy -i <name> -v <ver> | Promote a different version to active. Used after lua push job lands a new version on the server. |
Common Workflow
After editing a job in code:Logs and Errors
To debug job execution, pair this withlua logs:
Related
- LuaJob API — define a job in code
- Jobs API — create jobs dynamically at runtime
- Logs Command
- Push & Deploy

