Skip to content

Vercel CLI

Learn how to use the Vercel CLI to manage and configure your Vercel Projects from the command line.

Vercel gives you multiple ways to interact with and configure your Vercel Projects. With the command-line interface (CLI) you can interact with the Vercel platform using a terminal, or through an automated system, enabling you to retrieve logs, manage certificates, replicate your deployment environment locally, manage Domain Name System (DNS) records, and more.

If you'd like to interface with the platform programmatically, check out the REST API documentation.

To download and install Vercel CLI, run the following command:

npm i -g vercel

Installing Vercel CLI using the npm command.

When there is a new release of Vercel CLI, running any command will show you a message letting you know that an update is available.

If you have installed our command-line interface via npm or Yarn, the easiest way to update it is by running the installation command yet again.

npm i -g vercel@latest

Updating Vercel CLI using the npm command.

If you see permission errors, please read npm's official guide. Yarn depends on the same configuration as npm.

The --version option can be used to verify the version of Vercel CLI currently being used.

vercel --version

Using the vercel command with the --version option.