← Back to CLIs
Melvynx

vercel

Deploy and manage Vercel projects via CLI - deploy, env, domains, logs, teams. Use when user mentions 'vercel', 'deploy', 'vercel project', or wants to interact with Vercel.

Install

$ npx api2cli install vercel

Details

Skill type: Official CLI
Auth type: bearer
Version: 1.0.0
Author: Melvynx
Views: 0

README

vercel

Setup

npm i -g vercel

Verify installation:

vercel --version

Always use --json flag when calling commands programmatically.

Authentication

vercel login

Resources

Deploy

CommandDescription
vercelDeploy current project to preview
vercel --prodDeploy current project to production
vercel deploy --prodDeploy to production (explicit)
vercel lsList all deployments
vercel inspect <url>Show details of a deployment
vercel promote <url>Promote a deployment to production
vercel rollbackRollback to previous deployment
vercel redeploy <url>Redeploy an existing deployment

Environment Variables

CommandDescription
vercel env lsList all environment variables
vercel env add <name>Add a new environment variable
vercel env rm <name>Remove an environment variable
vercel env pull .env.localPull env vars to a local file

Domains

CommandDescription
vercel domains lsList all domains
vercel domains add <domain>Add a domain
vercel domains rm <domain>Remove a domain
vercel domains inspect <domain>Show domain details and DNS records

Projects

CommandDescription
vercel project lsList all projects
vercel project add <name>Create a new project
vercel project rm <name>Remove a project
vercel linkLink current directory to a project

Logs

CommandDescription
vercel logs <url>View realtime logs for a deployment
vercel logs <url> --followStream logs in realtime

Teams

CommandDescription
vercel teams lsList all teams
vercel teams switchSwitch to a different team

Local Development

CommandDescription
vercel devStart local development server
vercel buildBuild project locally

Global Flags

FlagDescription
--jsonOutput result as JSON
--token <token>Login token
--scope <team>Set scope to a team
--yesSkip confirmation prompts
--cwd <path>Set working directory
--debugEnable debug output
Sponsors