Skip to content
Back to skills

Vercel Cli

ASecurity

Use when deploying or managing projects with Vercel CLI or vc, environment variables, domains, or preview deployments.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 14, 2026
devopsshellbashnodeexpressdebuggingapibackendci/cd

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 18 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill vercel-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vercel Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vercel Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-vercel-cli/badge)](https://www.skillsdirectory.com/skills/anntnzrb-vercel-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vercel-cli
description: "Use when deploying or managing projects with Vercel CLI or vc, environment variables, domains, or preview deployments."
license: AGPL-3.0-or-later
metadata:
  author: anntnzrb

---

# Vercel CLI

`vercel`/`vc`: deploy, manage, and develop Vercel projects from the command line. `vercel <command> -h`: full flags for any command.

## Public entrypoint

Use the installed `vercel` or `vc` command. Examples use `vercel`. If neither is installed, use `bun x vercel <args>` as an unpinned ephemeral fallback; it selects the current package version, which can change.

## Project linking

MUST run commands from the directory containing `.vercel/` or a descendant.

- `.vercel/project.json`: created by `vercel link`; links one project; suitable for single-project repos and monorepos containing only one project.
- `.vercel/repo.json`: created by `vercel link --repo`; links a repo containing multiple projects; recommended when any project has a non-root directory such as `apps/web`.

Running from an unambiguous project subdirectory such as `apps/web/` skips the project-selection prompt. Troubleshooting: inspect `.vercel/` first and identify `project.json` versus `repo.json`; verify the team with `vercel whoami`. Wrong-team linking is a common failure.

## Quick start

```bash
vercel login
vercel link              # single project
# OR
vercel link --repo       # monorepo
vercel pull
vercel dev        # local development
vercel deploy     # preview deployment
vercel --prod     # production deployment
```

## Required follow-up reads

|Need|Read|When|
|---|---|---|
|Deployment|`references/deployment.md`|Deploying or promoting|
|Local development|`references/local-development.md`|Running locally|
|Environment variables|`references/environment-variables.md`|Reading or changing env|
|CI/CD|`references/ci-automation.md`|Automating deployment|
|Domains/DNS|`references/domains-and-dns.md`|Changing domain state|
|Projects/teams|`references/projects-and-teams.md`|Linking or scoping|
|Logs, debugging, protected previews|`references/monitoring-and-debugging.md`|Diagnosing or using `vercel curl`|
|Blob storage|`references/storage.md`|Managing blobs|
|Integrations|`references/integrations.md`|Managing connected services|
|Missing CLI surface, API, webhooks|`references/advanced.md`|Falling back to `vercel api`|
|Node backends|`references/node-backends.md`|Deploying Express/Hono/etc.|
|Monorepos|`references/monorepos.md`|Repo has workspaces or multiple projects|
|Bun runtime|`references/bun.md`|Deploying with Bun|
|Feature flags|`references/flags.md`|Managing flags|
|Global flags|`references/global-options.md`|Exact global options are needed|
|First setup|`references/getting-started.md`|Login/link is incomplete|
|Command workflow|`command/vercel.md`|Running the packaged command surface|

## Environment

- Tracked template: `.env.example`
- Primary non-interactive auth var: `VERCEL_TOKEN`
- NEVER infer missing auth solely because `VERCEL_TOKEN` is unset in the parent shell; existing `vercel login` state may be valid. Verify actual auth with `vercel whoami`. `VERCEL_TOKEN` is mainly for unattended/CI flows.
- CLI does not auto-load `.env`; use direnv or CI secret injection for unattended auth.

## Anti-patterns

- Multiple-project monorepo: `vercel link` creates `project.json`, tracking one project; explicitly use `vercel link --repo`. Check `.vercel/` first when things break.
- Monorepo without `.vercel/`: commands may implicitly run `vercel link` and create the potentially wrong `project.json`; explicitly run `vercel link` or `vercel link --repo` first.
- Wrong team: check with `vercel whoami`; switch with `vercel teams switch`.
- CI: `--yes` required to skip interactive prompts.
- After `vercel build`, `vercel deploy` ignores build output unless run with `--prebuilt`.
- Tokens: use `VERCEL_TOKEN`, not `--token`.
- Preview deploy access: use `vercel curl`, not deployment-protection disabling.

## Maintenance

The fallback is unpinned because the newest eligible npm CLI version has no matching upstream release tag, and the repository's latest release can belong to another package. The current CLI can change with the Vercel service. When revisiting this choice, compare the newest stable npm `vercel` package at least 14 days old with its upstream CLI release tag. Add a tracked pin only when the versions match and the upstream tracker can follow CLI releases without selecting unrelated packages.

Files in this skill

  • SKILL.md4.4 KB
  • command/vercel.md1.3 KB
  • references/advanced.md867 B
  • references/bun.md1.2 KB
  • references/ci-automation.md1.5 KB
  • references/deployment.md1.7 KB
  • references/domains-and-dns.md881 B
  • references/environment-variables.md1.1 KB
  • references/flags.md1.8 KB
  • references/getting-started.md1.3 KB
  • references/global-options.md682 B
  • references/integrations.md7.4 KB
  • references/local-development.md890 B
  • references/monitoring-and-debugging.md1.4 KB
  • references/monorepos.md2.9 KB
  • references/node-backends.md2.6 KB
  • references/projects-and-teams.md1 KB
  • references/storage.md818 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in devops →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.