#14147·vercel

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:

  1. It hangs indefinitely when no new logs are being generated
  2. You can't view historical logs from the CLI at all
  3. This breaks expected CLI patterns - most log commands show existing logs first

Current Behavior

bash
$ 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 traffic

Expected Behavior

Like other CLI tools (docker logs, kubectl logs, tail), the command should:

  1. Show recent historical logs by default
  2. Provide options for time-based filtering
  3. 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

  1. Developer Experience: Current behavior wastes debugging time
  2. AI Integration: Tools like Cursor and Claude Code can't access historical logs via CLI
  3. 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.