runtm logs
View build, deploy, and runtime logs for a deployment. Essential for agents to debug issues and iterate on fixes.Arguments
Options
Examples
Basic Usage
Searching Logs
Pipe-Friendly Output
JSON Output (for AI Agents)
Perfect for agents that need to parse logs programmatically:Log Types
Build Logs
Docker build output:Deploy Logs
Fly.io deployment output:Runtime Logs
Application output (stdout/stderr):Advanced Filtering
Using jq with JSON
Python Script Example
Troubleshooting
'No logs available'
'No logs available'
The deployment may still be in progress. Check status:
Runtime logs empty
Runtime logs empty
Runtime logs are only available for
ready deployments. Check if the app is running:Logs are truncated
Logs are truncated
Increase the line limit:
Related Commands
runtm status- Check deployment statusruntm deploy- Deploy a new version