# Improvements to command line logs

**Published:** July 24, 2024 | **Authors:** Damien Simonin Feugas, Julia Shi

---

Vercel CLI v35 introduces new commands to access of deployment and runtime logs:

- `vercel deploy --logs` deploys and shows [build logs](https://vercel.com/docs/cli/deploy)
- `vercel inspect --logs` shows [build logs](https://vercel.com/docs/cli/inspect) for an existing deployment
- `vercel logs` now follows [runtime logs](https://vercel.com/docs/cli/logs) of an existing deployment

You can now use the `--json` option to stream logs as JSON. This makes it easier to parse and filter logs using tools like [jq](https://jqlang.github.io/jq/).

```bash
vercel logs --json | jq 'select(.level == "warning")'
```

To use these features, update to the latest version of the Vercel CLI:

```bash
pnpm add -g vercel
```

---

📚 **More updates:** [View all changelog entries](/changelog/sitemap.md) | [Blog](/blog/sitemap.md)