← Back
Vercel
Vercel's logs CLI command gains historical querying and agent-friendly filters
Vercel · featureapiplatform · vercel.com ↗

Enhanced Log Querying for Developers and Agents

Vercel has significantly upgraded the vercel logs CLI command with new querying and filtering capabilities. The rebuilt command makes it easier to search and retrieve logs across your projects, with built-in support for agent workflows that need programmatic access to historical log data.

New Filtering Capabilities

The enhanced command supports multiple filtering options to help you find exactly what you need:

  • Project-level filtering to scope logs to specific projects
  • Deployment ID filtering to trace logs from particular deployments
  • Request ID filtering for detailed request tracking
  • Arbitrary string search for flexible pattern matching across logs

Smart Context Detection

A key improvement is automatic git context detection. When you run vercel logs from a project directory, the command automatically scopes results to your current repository—eliminating the need to manually specify project details and streamlining local debugging workflows.

Use Cases

This update is particularly valuable for:

  • Debugging production issues with precise log retrieval
  • Building automated monitoring workflows through the CLI
  • Agent-driven monitoring where AI tools need programmatic log access with filtering capabilities

You can explore the full capabilities in the Vercel CLI documentation for the logs command.