Wednesday, July 24th 2024
Improvements to command line logs
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2FXNnQJn0m1ZADKC8dpyVUy%2F174aeec88d783d7fde5aa3beb3f5cf9f%2Fvc_logs_improvements_-_Light.png&w=3840&q=95&dpl=dpl_4ncFZxXZk2GB575Bec3zKXTHS7Ko)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F2pp8fvlFP24ylTZJr9CSe8%2F37e548afacd61632e9af5938cd98e565%2Fvc_logs_improvements_-_Dark.png&w=3840&q=95&dpl=dpl_4ncFZxXZk2GB575Bec3zKXTHS7Ko)
Posted by
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2FXNnQJn0m1ZADKC8dpyVUy%2F174aeec88d783d7fde5aa3beb3f5cf9f%2Fvc_logs_improvements_-_Light.png&w=3840&q=95&dpl=dpl_4ncFZxXZk2GB575Bec3zKXTHS7Ko)
![](/_next/image?url=https%3A%2F%2Fassets.vercel.com%2Fimage%2Fupload%2Fcontentful%2Fimage%2Fe5382hct74si%2F2pp8fvlFP24ylTZJr9CSe8%2F37e548afacd61632e9af5938cd98e565%2Fvc_logs_improvements_-_Dark.png&w=3840&q=95&dpl=dpl_4ncFZxXZk2GB575Bec3zKXTHS7Ko)
Vercel CLI v35 introduces new commands to access of deployment and runtime logs:
vercel deploy --logs
deploys and shows build logsvercel inspect --logs
shows build logs for an existing deploymentvercel logs
now follows runtime 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.
vercel logs --json | jq 'select(.level == "warning")'
To use these features, update to the latest version of the Vercel CLI:
pnpm add -g vercel