vercel-cli

Deploy, manage, and develop projects on Vercel from the command line.

Updated Aug 21, 2025
One-click install
npx skills add https://github.com/Adithiya-S/AI-Study-Companion --skill vercel-cli-adithiya-s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-cli
Source: https://github.com/Adithiya-S/AI-Study-Companion/tree/main/.agents/skills/vercel-cli/upstream
Command: npx skills add https://github.com/Adithiya-S/AI-Study-Companion --skill vercel-cli-adithiya-s

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing Vercel deployments, environment variables, domains, and integrations from the command line involves many commands with subtle pitfalls like wrong project linking, missing CI flags, and disabled deployment protection. This Skill routes every task to the correct Vercel CLI workflow and reference documentation. ## Core Features & Use Cases - Deployment & CI/CD: Run preview and production deployments, prebuilt builds, blue/green and rolling-release workflows, and GitHub Actions automation with VERCEL_TOKEN and --yes. - Project Operations: Manage environment variables, domains and DNS, Blob storage, Marketplace integrations, logs, metrics, and preview access via vercel curl. - Framework & Monorepo Support: Covers Node.js backends (Express, Hono), Bun runtime, Turborepo/Nx monorepos with vercel link --repo, and feature flags via vercel flags. - Use Case: You need to deploy a monorepo app to production from CI. The Skill directs you to link with vercel link --repo, then run vercel pull --yes, vercel build --prod, and vercel deploy --prebuilt --prod. ## Quick Start Ask the assistant to deploy your project to Vercel production and it will link the project, pull environment variables, and run the correct deploy commands.

Frequently Asked Questions about vercel-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a project to Vercel from the command line?

Run vercel for a preview deployment or vercel --prod for production after linking with vercel link. For deterministic builds, run vercel build --prod followed by vercel deploy --prebuilt --prod.

How do I deploy a Vercel project in a CI/CD pipeline?

Use the VERCEL_TOKEN environment variable for authentication and always pass --yes to skip prompts. The standard pattern is vercel pull --yes --environment=production, vercel build --prod, then vercel deploy --prebuilt --prod.

Should I use vercel link or vercel link --repo for a monorepo?

Use vercel link --repo for monorepos with multiple projects or non-root directories, since it creates .vercel/repo.json mapping directories to projects. Plain vercel link creates project.json which only tracks a single project.

How do I access a Vercel preview deployment with protection enabled?

Use vercel curl with the --deployment flag, which handles deployment protection automatically. Do not disable deployment protection; vercel curl manages the bypass for you.

Can I run Express or Hono backends on Vercel?

Yes, Vercel supports Node.js frameworks like Express, Hono, Fastify, and NestJS as first-class apps. Export your app as default from an entrypoint like server.ts and deploy; routes are introspected automatically without rewrites.

Why does my Vercel CLI command fail or prompt unexpectedly?

Most issues come from incorrect linking, so check whether .vercel contains project.json or repo.json first. Also verify you are on the right team with vercel whoami and add --yes in non-interactive environments.