CLI: Seed Workflows
Use this section when you need to create or inspect seed workflows from the
Cofactor CLI. The conceptual model lives in seed-workflows; this section is
only command orientation. Prefer each command's --help output for the
current flag list.
Create a simple seed shell
For simple data outputs, create the seed shell with repeatable output declarations:
cofactor workflow seed create \ --name "Create Test Project" \ --description "Provisions a test project with default settings" \ --output "project_id:Project ID:The created project's UUID" \ --output "project_name:Project Name"
This creates a draft seed workflow and, by default, a paired teardown workflow linked to the seed.
Create a complex seed shell
For credential outputs or larger configs, put the full seed definition in a JSON file and create from that file:
cofactor workflow seed create --from-file seed.json
Keep generated credential fields in credentialOutput, and keep exported data
fields in outputs. Downstream workflows consume both through $var.{dataKey}.
--outputs-json '<array>' is the inline equivalent; to change the outputs
of an existing seed use cofactor workflow patch <id> --seed-outputs-file seed-outputs.json. The credentialOutput shape and the end-to-end recipe
are in cofactor workflow guide seed-users.
After creation
Add the seed body through the Flow Designer or workflow sync, test both the seed and teardown, then publish. If the seed can be API-backed, generate or attach an API sequence after the browser version is proven.
Set how often a seed runs
Share one seed execution across all consuming flows in a suite:
cofactor workflow patch <id> --run-once-per-suite true
Turn off the seed's forced suite scope (each consuming seed node's scope applies again):
cofactor workflow patch <id> --run-once-per-suite false
This flag accepts only true or false and is valid only for seed flows.
Read the saved seedRunOncePerSuite setting with cofactor workflow list --json.
Reference
- Seed command help:
cofactor workflow seed --help - Workflow sync help:
cofactor workflow sync --help