create

Create a new named workflow scaffold under .raili/<workflow>.

Usage

raili create -w <workflow>  # Creates a new workflow scaffold under .raili/<workflow>

Description

Creates a new workflow directory under ./.raili/<workflow> containing a scaffolded workflow.yaml, vars.yaml, and the directories outputs/ and learnings/.

The command is intentionally fail-fast:

Files created

Example generated workflow.yaml

initial: init
inputs: []

states:
  init:
    type: engine

  archive:
    type: script
    script: archive-part
    transitions:
      more_parts: analyze
      no_more_parts: done

  analyze:
    type: agent

  done:
    type: engine

Errors and messages

See also