poly functions requires a subcommand.
This isn’t where the push/pull Functions mechanism lives (see Functions). poly functions covers execute (run a function by name or ID) and validate (check functions for syntax errors and orphaned references).
Examples:
--region, --project_id and --branch_id directly, so poly functions can run headlessly (CI, scripts, or against a branch you haven’t pulled locally) without a local project checkout:
--region is one of us, eu, uk, studio — see Regions.
poly functions execute
Execute a Function and print its return value, logs and runtime.
Examples:
conv object from the branch’s config, but it’s a fresh one with no live caller and no prior state — not a way to attach to an actual call.
Does not work this way
--conv flag. conv.state starts empty every run and isn’t persisted between runs; calls like conv.say(...), conv.goto_flow(...), or conv.call_handoff(...) have no live channel to act on — only the returned body, logs, and runtime reflect what happened.
Covers global functions only, not flow-scoped transition functions or function steps.
Unknown function name or IDIf no function on the branch matches, the command exits with an error message rather than a traceback.
--json output shape:
poly functions validate
Check every Function on the current branch for syntax errors and orphaned flow-step references.
Examples:
--json output shape:
--json.
