Vercel

Vercel Launches `api` Command for Direct API Access from its CLI


Executive Summary

Vercel has released an update to its CLI (`vercel@50.5.1`) featuring a new `api` command, which grants direct terminal access to the entire suite of Vercel APIs. This functionality is specifically designed to enable AI agents, such as Claude Code, to interact with the Vercel platform programmatically without extra configuration. The command allows users and agents to list available APIs, build requests interactively, or send them directly from the command line.

Key Takeaways

* New Feature: A new `api` command is now available in the Vercel CLI.

* Primary Function: Provides direct, authenticated access to all Vercel APIs from the terminal.

* AI Agent Integration: A key use case is enabling AI agents to interact with Vercel, as they can automatically inherit the user's access permissions.

* Specific Commands:

* `vercel api ls`: Lists available APIs.

* `vercel api`: Starts an interactive request builder.

* `vercel api [endpoint] [options]`: Sends a direct request.

* Availability: Accessible by updating to the latest version of the Vercel CLI.

Strategic Importance

This update positions Vercel's platform as more accessible for automation and AI-driven development, streamlining workflows where generative AI agents manage infrastructure and deployments directly.

Original article