docs/local-cre/environment/workflows.md
Local CRE includes CLI helpers for compiling, deploying, deleting, and testing workflows.
Deploy a workflow:
go run . env workflow deploy -w ./path/to/workflow/main.go --compile -n my_workflow_name
Delete a workflow from the registry:
go run . env workflow delete -n my_workflow_name
Delete all workflows from the registry:
go run . env workflow delete-all
Run the proof-of-reserve example verifier:
go run . env workflow run-por-example
The deploy command supports the following implementation-backed flags:
--workflow-file-path--config-file-path--secrets-file-path--secrets-output-file-path--container-target-dir--container-name-pattern--rpc-url--workflow-owner-address--workflow-registry-address--capabilities-registry-address--don-id--name--delete-workflow-file--compile--with-contracts-version--workflow-file-path and --name are required.
When you pass --compile, Local CRE uses the shared workflow compiler:
go mod tidyCGO_ENABLED=0, GOOS=wasip1, and GOARCH=wasmbun cre-compile.br.b64 fileThese same rules are used by the system-test helpers.
Configuration files are optional and workflow-specific. When you use secrets:
--secrets-file-path points to the unencrypted input mapping--secrets-output-file-path controls the encrypted output pathThis matches the registration path used by the shared workflow package in system-tests/lib/cre/workflow.
Common example deployment patterns include:
Use the examples under core/scripts/cre/environment/examples/workflows/ as the fastest way to validate an environment after startup.
Local CRE supports both contract-backed and file-backed workflow sources.
Key ideas for this mode:
Use this mode when you need to iterate quickly on workflow packaging or test workflows without re-registering each time through the contract path.
For lower-level control:
.br.b64env workflow deployFor test-specific deployment behavior, see Workflows in Tests.