Historical logs in `vercel logs` command
Author: PiessonCreated Oct 28, 2025Updated Sep 27, 2026
Problem
The vercel logs command currently only shows live logs "from now and for 5 minutes at most" according to the help text. This behavior is confusing because:
- It hangs indefinitely when no new logs are being generated
- You can't view historical logs from the CLI at all
- This breaks expected CLI patterns - most log commands show existing logs first
Current Behavior
$ vercel logs https://myapp.vercel.app
Vercel CLI 48.6.0
Fetching deployment "myapp.vercel.app"
Displaying runtime logs for deployment...
waiting for new logs...
# Hangs here indefinitely if no trafficExpected Behavior
Like other CLI tools (docker logs, kubectl logs, tail), the command should:
- Show recent historical logs by default
- Provide options for time-based filtering
- Only wait for new logs when explicitly requested
Proposed Solution
Add these options to vercel logs:
vercel logs --since 1h # Show logs from past hour
vercel logs --last 100 # Show last 100 log entries
vercel logs --follow # Live monitoring (current behavior)
vercel logs # Show recent logs + follow (new default)
Why This Matters
- Developer Experience: Current behavior wastes debugging time
- AI Integration: Tools like Cursor and Claude Code can't access historical logs via CLI
- Consistency: Aligns with standard CLI patterns developers expect
Workaround
Currently, historical logs are only available via:
- Web dashboard (vercel.com → project → Functions → Logs)
- Direct API calls
Impact
This would significantly improve CLI usability for debugging and make Vercel CLI more consistent with other developer tools.
Source: vercel/vercel