Fetch workflow run logs
Fetch step logs from a workflow run. By default shows all steps; use filters to narrow output.
pw workflows runs logs <slug> [flags]
# Show all logs for a run
pw workflows runs logs swift-falcon-17
# Show only failed step logs
pw workflows runs logs swift-falcon-17 --failed
# Show logs for a specific job and step
pw workflows runs logs swift-falcon-17 --job build --step run-tests
# Show last 50 lines per step
pw workflows runs logs swift-falcon-17 --tail 50
# Follow logs until run completes
pw workflows runs logs swift-falcon-17 -f
# Output as JSON
pw workflows runs logs swift-falcon-17 -o json
--failed Only show logs from failed/errored steps
-f, --follow Poll and stream new lines until run completes
-h, --help help for logs
--job string Filter to a specific job name
-o, --output string Output format (json)
--step string Filter to a specific step by name or index number (requires --job)
--tail int Last N lines per step (0 = all)
--context string The context to use. Overrides PW_CONTEXT environment variable and current context from config.
--platform-host string The Parallel Works ACTIVATE platform host to use. Will override any other platform host settings.
-v, --verbose Enable verbose logging