crewship automation
Manage automations — the workspace rules that turn a journal event into a deferred routine run. See the Automations guide for the concepts, the burst controls and the{{ event.* }} template namespace.
Subcommands
Every subcommand honours the global
--format flag (json/yaml/ndjson) —
see Output Formats.
crewship automation preview
Replay recent history against a rule and see what it would have caught —
without saving anything and without starting a run.
to, not
status. Re-run with --payload-equals to=DONE and the preview fires.
“no entries in the window” is not a verdict on the rule. A quiet
workspace has nothing to judge a matcher against; the output says so rather
than reporting zero matches, which would send you to edit a predicate that
may be perfectly correct.
crewship automation list
crewship automation create
--name, --event and --routine are required. The routine must already
exist in this workspace; a slug that does not resolve is refused rather than
saved as a rule that never fires.
A predicate flag you omit is “don’t care”; omit all of them and every entry of
the event type matches.
crewship automation update <id>
create.
The action is written as a whole, so
--input requires --routine.
Sending inputs alone would blank the rule’s target.crewship automation enable <id> / disable <id>
update --enabled, exposed as verbs because that is how they are used.
crewship automation delete <id>
crewship chain. Its runs keep
triggered_via='automation', so the record that a rule started them
survives, but the rule itself no longer appears as a node. Use
crewship automation disable <id> instead when you want to stop a rule and
keep the origin of its past runs visible in the topology.
Trace what a rule has done
crewship chain.
Exit codes
Standard CLI exit codes. A routine slug that does not exist in the workspace, a malformed--event, or a key=value flag
without an = are all client errors, reported before anything is written.