Who runs these commands? Most pflow commands are run by your AI agent, not by you directly. You handle setup (installation, API keys, MCP servers), then your agent uses pflow to build and run workflows. This reference documents all commands so you understand what your agent is doing. See Using pflow for what to expect day-to-day.
Command structure
Command groups
pflow (default)
Run workflows by name or file
pflow workflow
List, describe, discover, and save workflows
pflow skill
Publish workflows as AI agent skills
pflow registry
Browse and test available nodes
pflow mcp
Manage MCP server connections
pflow settings
Configure API keys and node filtering
pflow instructions
Get AI agent usage guidance
Main command
The defaultpflow command runs workflows. Your agent uses this to run saved workflows or workflow files it has created.
Run a saved workflow
Run from a file
No built-in natural language mode. pflow executes workflow files and saved workflows. Your AI agent builds workflows using pflow’s MCP tools or CLI primitives — pflow doesn’t have its own natural language interface.
Global options
| Option | Description |
|---|---|
--version | Show pflow version |
-v, --verbose | Show detailed execution output |
-o, --output-key KEY | Specific shared store key to output |
--output-format text|json | Output format (default: text) |
-p, --print | Force non-interactive output |
--no-trace | Disable workflow trace saving |
--cache/--no-cache | Enable/disable memoization cache reads (default: enabled) |
--only NODE | Run workflow through this node then stop |
--validate-only | Validate workflow without running |
--help | Show help message |
Older natural-language workflow generation flags have been removed. Use the current global options shown above, or let your AI agent build
.pflow.md workflows directly.Parameter syntax
Pass parameters to workflows usingkey=value syntax:
true/false→ boolean10→ integer3.14→ float'["a","b"]'→ JSON array'{"key":"val"}'→ JSON object- Everything else → string
Stdin input
Pipe data into workflows that declare an input withstdin: true:
-p flag to output results for the next workflow:
Output modes
Text mode (default)
Human-readable output with progress indicators in interactive terminals:JSON mode
Structured output for parsing:Print mode
Clean output for piping (no progress indicators):Validation mode
Validate a workflow without running it:Iteration and caching
pflow caches node outputs automatically. When your agent re-runs a workflow file, unchanged nodes return instantly from a persistent cache — only nodes whose configuration or inputs changed will re-execute.~/.pflow/cache/cache.db.
Run a single node
The--only flag runs the workflow through the named node and stops. Upstream nodes are served from cache if available, downstream nodes don’t execute:
Bypass caching
Use--no-cache to force fresh execution. Cache writes still happen, so the next run without --no-cache benefits from the results:
Traces and reports
By default, pflow saves execution traces to~/.pflow/debug/:
- Workflow traces:
workflow-trace-{name}-{timestamp}.json
--no-trace for faster execution (the --report flag overrides --no-trace).
Instructions command
Thepflow instructions command provides guidance for AI agents using pflow.
| Subcommand | Description |
|---|---|
usage | Basic usage guide for AI agents (~100 lines) |
create | Comprehensive workflow creation guide (~1600 lines) |
AI agents should run
pflow instructions usage when first connecting to pflow. This provides optimized guidance for agent-driven workflow building.Related
- Workflow commands - Manage saved workflows
- Skill commands - Publish workflows as AI agent skills
- Registry commands - Browse available nodes
- MCP commands - Manage MCP servers
- Settings commands - Configure pflow

