@withone/cli 1.47.8 → 1.47.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -272,7 +272,7 @@ one actions execute stripe <actionId> <connectionKey> \
|
|
|
272
272
|
| `--dry-run` | Show the request without executing it |
|
|
273
273
|
| `--mock` | Return example response without making an API call |
|
|
274
274
|
| `--skip-validation` | Skip input validation against the action schema |
|
|
275
|
-
| `--output <path>` | Save response to a file (for binary downloads) |
|
|
275
|
+
| `--output <path>` | Save response to a file (for genuine binary downloads — PDFs, images). Text responses (text/plain, HTML, CSV, XML) render inline automatically. |
|
|
276
276
|
| `--no-cache` | Bypass the cached action details and re-fetch them; the fresh details still refresh the cache (execution itself is never cached) |
|
|
277
277
|
|
|
278
278
|
The CLI validates required parameters (path variables, query params, body fields) against the action schema before executing. Missing params return a clear error with the flag name and description. Pass `--skip-validation` to bypass.
|
|
@@ -474,9 +474,17 @@ Execute a workflow by key or file path. Pass inputs with repeatable `-i` flags.
|
|
|
474
474
|
one flow execute welcome-customer \
|
|
475
475
|
-i customerEmail=jane@example.com
|
|
476
476
|
|
|
477
|
-
# Dry run -
|
|
477
|
+
# Dry run - resolve every step's interpolations and show what they evaluate to,
|
|
478
|
+
# without executing any step (catches wiring bugs without burning API credits)
|
|
478
479
|
one flow execute welcome-customer --dry-run -i customerEmail=jane@example.com
|
|
479
480
|
|
|
481
|
+
# Stop after a specific step (isolate where a long flow breaks)
|
|
482
|
+
one flow execute welcome-customer --stop-after fetch-user -i customerEmail=jane@example.com
|
|
483
|
+
|
|
484
|
+
# Combine: run steps up to a point for real, then dry-resolve the suspect step
|
|
485
|
+
# against the REAL accumulated output (so $.steps.* references resolve too)
|
|
486
|
+
one flow execute welcome-customer --dry-run --stop-after send-email -i customerEmail=jane@example.com
|
|
487
|
+
|
|
480
488
|
# Verbose - show each step as it runs
|
|
481
489
|
one flow execute welcome-customer -v -i customerEmail=jane@example.com
|
|
482
490
|
```
|
|
@@ -488,8 +496,9 @@ Press Ctrl+C during execution to pause - the run can be resumed later with `one
|
|
|
488
496
|
| Option | What it does |
|
|
489
497
|
|--------|-------------|
|
|
490
498
|
| `-i, --input <name=value>` | Input parameter (repeatable) |
|
|
491
|
-
| `--dry-run` |
|
|
499
|
+
| `--dry-run` | Resolve each step's interpolations and show what they evaluate to, without executing any step. `$.input.*`/`$.env.*` resolve up front; `$.steps.*` refs are reported as deferred (they're produced at runtime). |
|
|
492
500
|
| `--mock` | With `--dry-run`: execute transforms/code with realistic mock API responses |
|
|
501
|
+
| `--stop-after <stepId>` | Execute steps up to and including `<stepId>`, then stop (later steps are not run). Combined with `--dry-run`, runs earlier steps for real and dry-resolves `<stepId>` against their output without executing it. Inspect what ran with `one flow inspect <runId>`. |
|
|
493
502
|
| `--skip-validation` | Skip input validation against action schemas |
|
|
494
503
|
| `--allow-bash` | Allow bash step execution (disabled by default for security) |
|
|
495
504
|
| `-v, --verbose` | Show full request/response for each step |
|
|
@@ -530,6 +539,17 @@ one flow runs # all runs
|
|
|
530
539
|
one flow runs welcome-customer # runs for a specific workflow
|
|
531
540
|
```
|
|
532
541
|
|
|
542
|
+
### `one flow inspect <runId>`
|
|
543
|
+
|
|
544
|
+
Inspect a past (or in-progress) run's per-step outputs — post-mortem debugging without re-running the flow. Every run persists a state file that records each step's output as it completes (and is preserved on failure), so this shows exactly how far the run got and what each step produced.
|
|
545
|
+
|
|
546
|
+
```bash
|
|
547
|
+
one flow inspect abc123 # truncates large outputs
|
|
548
|
+
one flow inspect abc123 --full # full, pretty-printed outputs
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
Pairs with `--stop-after`: run up to a step, then `one flow inspect <runId>` to see its output.
|
|
552
|
+
|
|
533
553
|
### `one config`
|
|
534
554
|
|
|
535
555
|
Configure access control for the MCP server. Optional - full access is the default.
|