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
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.
npm i -g vercel@latest
If you see permission errors, please read npm's official guide. Yarn depends on the same configuration as npm.
--version option can be used to verify the version of Vercel CLI currently being used.