CLI
Workflows
Create workflow definitions, upload graphs, install triggers, start runs, and resume waits.
Workflow build order
- Design the SOP.
- Create tables, functions, and agents first.
- Run each function standalone and save the response shape.
- Create the workflow shell.
- Upload the graph with real function_name and agent_name values.
- Install the workflow if start type is scheduled, event, or datastore event.
- Run a realistic test and inspect run output.
Definition and graph
lemma workflow create --pod-id <pod-id> --payload-file ./payloads/workflow-create.json
lemma workflow graph-update expense-review --pod-id <pod-id> --payload-file ./payloads/workflow-graph.json
lemma workflow get expense-review --pod-id <pod-id>Installs and runs
lemma workflow install-create expense-review --pod-id <pod-id> --schedule-type CRON --cron-expression '*/5 * * * *' --timezone UTC
lemma workflow run-start expense-review --pod-id <pod-id> --payload '{"input":{"expense_id":"exp_123"}}'
lemma workflow run-get expense-review <run-id> --pod-id <pod-id>
lemma workflow run-resume expense-review <run-id> --pod-id <pod-id> --payload-file ./payloads/resume.json