You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `--var-payload` parameter sets the initial `payload` value before the first step runs. This is useful when you want to start a flow with a known payload without adding a setup step.
9
+
10
+
## Usage
11
+
12
+
```bash
13
+
phlow --var-payload VALUE [file]
14
+
```
15
+
16
+
The `VALUE` must be valid JSON and will be parsed using the same mechanism as other values in Phlow.
17
+
18
+
## How it Works
19
+
20
+
When `--var-payload` is specified:
21
+
22
+
1.**The value becomes available as `payload` in the first step**
23
+
2.**Main modules still run normally** (unless `--var-main` is also used)
24
+
3.**Subsequent steps overwrite `payload` as usual**
0 commit comments