# vercel logs

The `vercel logs` command displays and follows runtime logs data for a specific deployment.
[Runtime logs](/docs/runtime-logs) are produced by [Middleware](/docs/routing-middleware) and [Vercel Functions](/docs/functions).
You can find more detailed runtime logs on the [Logs](/d?to=%2F%5Bteam%5D%2F%5Bproject%5D%2Flogs\&title=Open+Logs) page from the Vercel Dashboard.

From the moment you run this command, all newly emitted logs will display in your terminal, for up to 5 minutes, unless you interrupt it.

Logs are pretty-printed by default, but you can use the `--json` option to display them in JSON format, which makes the output easier to parse programmatically.

## Usage

```bash filename="terminal"
vercel logs [deployment-url | deployment-id]
```

## Unique options

These are options that only apply to the `vercel logs` command.

### Json

The `--json` option, shorthand `-j`, changes the format of the logs output from pretty print to JSON objects.
This makes it possible to pipe the output to other command-line tools, such as [jq](https://jqlang.github.io/jq/), to perform your own filtering and formatting.

```bash filename="terminal"
vercel logs [deployment-url | deployment-id] --json | jq 'select(.level == "warning")'
```

### Follow

> **💡 Note:** The  option has been deprecated since it's
> now the default behavior.

The `--follow` option, shorthand `-f`, can be used to watch for additional logs output.

### Limit

> **💡 Note:** The  option has been deprecated as the command
> displays all newly emitted logs by default.

The `--limit` option, shorthand `-n`, can be used to specify the number of log lines to output.

### Output

> **💡 Note:** The  option has been deprecated in favor of
> the  option.

The `--output` option, shorthand `-o`, can be used to specify the format of the logs output, this can be either `short` (default) or `raw`.

### Since

> **💡 Note:** The  option has been deprecated. Logs are
> displayed from when you started the command.

The `--since` option can be used to return logs only after a specific date, using the ISO 8601 format.

### Until

> **💡 Note:** The  option has been deprecated. Logs are
> displayed until the command is interrupted, either by you or after 5 minutes.

The `--until` option can be used to return logs only up until a specific date, using the ISO 8601 format.


--------------------------------------------------------------------------------
title: "vercel mcp"
description: "Set up Model Context Protocol (MCP) usage with a Vercel project using the vercel mcp CLI command."
last_updated: "2026-02-03T02:58:38.357Z"
source: "https://vercel.com/docs/cli/mcp"
--------------------------------------------------------------------------------