Command reference
oko-cli routines create
Stores a typed Oko operation in Stado's durable schedule registry.
Invocation#
oko-cli routines create --id UUID --name NAME --action context|autonomy --cron EXPR --tz IANA --host HOST [--query TEXT] [--db ABSOLUTE_PATH] [--enabled]Inputs and options#
- Retain the caller-generated UUID before submitting. Cron has five fields; timezone is an IANA identifier.
- Choose an existing local host. Context optionally takes a query and catalogue path on that host.
Output and state effect#
- Creates a paused schedule unless --enabled is explicit. Stado owns time, placement and overlap prevention; Oko creates no second timer.
- An uncertain creation is inspected with show sch-<UUID without hyphens>; do not invent a replacement UUID.
Refusals and safe exits#
- Duplicate identity, unknown host, invalid cron/timezone or definition fail without creating replacement work.
- Only context and autonomy are supported. Payment instructions, arbitrary commands and context-only flags on autonomy are refused.