vercel-cli

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

Updated Dec 17, 2022
One-click install
npx skills add https://github.com/Foodshareclub/foodshare-web --skill vercel-cli-foodshareclub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-cli
Source: https://github.com/Foodshareclub/foodshare-web/tree/main/.agents/skills/vercel-cli/upstream
Command: npx skills add https://github.com/Foodshareclub/foodshare-web --skill vercel-cli-foodshareclub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Managing Vercel deployments, environment variables, domains, and integrations from the terminal involves many commands with subtle pitfalls like wrong project linking, missing CI flags, and disabled deployment protection. This Skill provides structured guidance to execute Vercel CLI workflows correctly. ## Core Features & Use Cases - Deployment Workflows: Run preview and production deployments, prebuilt builds, blue/green releases, rolling releases, and rollbacks. - Project Configuration: Manage environment variables, domains, DNS records, feature flags, and Marketplace integrations like databases and blob storage. - Monorepo & Framework Support: Handle Turborepo/Nx monorepos with vercel link --repo, Bun runtimes, and Node backends like Express and Hono. - Use Case: You need to set up CI/CD for a monorepo. The Skill guides you to link with vercel link --repo, then use vercel pull, vercel build --prod --standalone, and vercel deploy --prebuilt --prod with VERCEL_TOKEN for authentication. ## Quick Start Ask the assistant to deploy your project to Vercel production or set up environment variables for your linked Vercel project.

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 your project with vercel link. For deterministic builds, run vercel build --prod followed by vercel deploy --prebuilt --prod.

How do I set up Vercel CLI in a monorepo?

Use vercel link --repo instead of vercel link to create .vercel/repo.json, which maps multiple directories to Vercel projects. Running commands from a project subdirectory like apps/web skips the project selection prompt.

How do I manage environment variables with the Vercel CLI?

Use vercel env add NAME production to add variables scoped to production, preview, or development environments. Run vercel env pull to download them to .env.local, or vercel env run -- npm test to inject them into a subprocess.

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

Use vercel curl /path --deployment $PREVIEW_URL, which handles deployment protection automatically. Do not disable deployment protection; vercel curl manages the bypass for you.

Why does my Vercel CI deployment fail or prompt interactively?

CI failures usually come from missing --yes flags, using --token instead of the VERCEL_TOKEN env var, or wrong linking (project.json vs repo.json). Always run vercel pull --yes, vercel build, and vercel deploy --prebuilt in CI.

Can I run Express or Hono backends on Vercel?

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