/deployments-cicd
Vercel deployment and CI/CD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.
Claude Code
$ npx -y skills add vercel/vercel-plugin --skill deployments-cicd --agent claude-code
Codex
$ npx skills add vercel/vercel-plugin --skill deployments-cicd -a codex -y
Cursor
$ npx skills add vercel/vercel-plugin --skill deployments-cicd -a cursor -y
Gemini CLI
$ npx skills add vercel/vercel-plugin --skill deployments-cicd -a gemini-cli -y
GitHub Copilot
$ npx skills add vercel/vercel-plugin --skill deployments-cicd -a github-copilot -y
OpenCode
$ npx skills add vercel/vercel-plugin --skill deployments-cicd -a opencode -y
Windsurf
$ npx skills add vercel/vercel-plugin --skill deployments-cicd -a windsurf -y
SKILL.md
deployments-cicd.SKILL.mdname: deployments-cicd
description: Vercel deployment and CI/CD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.
metadata:
priority: 6
docs:
- "https://vercel.com/docs/deployments"
- "https://vercel.com/docs/git"
- "https://vercel.com/docs/deployments/promoting-a-deployment"
- "https://vercel.com/docs/deployment-checks"
sitemap: "https://vercel.com/sitemap.xml"
pathPatterns:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
- '.gitlab-ci.yml'
- 'bitbucket-pipelines.yml'
- 'vercel.json'
- 'apps/*/vercel.json'
bashPatterns:
- '\bvercel\s+deploy\b'
- '\bvercel\s+--prod\b'
- '\bvercel\s+promote\b'
- '\bvercel\s+rollback\b'
- '\bvercel\s+inspect\b'
- '\bvercel\s+build\b'
- '\bvercel\s+deploy\s+--prebuilt\b'
validate:
-
pattern: 'cron:\s*[''"]|from\s+[''"](node-cron)[''"]|cron\.schedule\('
message: 'Manual cron scheduling detected. Use Vercel Schedules (beta), not legacy Cron Jobs.'
severity: recommended
skipIfFileContains: 'vercel\.json.*(crons|schedules)|@vercel/schedules'
retrieval:
aliases:
- deploy
- ci cd
- continuous deployment
- release pipeline
intents:
- deploy to vercel
- set up ci cd
- promote deployment
- rollback deploy
entities:
- vercel deploy
- preview
- production
- rollback
- promote
- CI workflowVercel Deployments & CI/CD
You are an expert in Vercel deployment workflows — `vercel deploy`, `vercel promote`, `vercel rollback`, `vercel inspect`, `vercel build`, and CI/CD pipeline integration with GitHub Actions, GitLab CI, and Bitbucket Pipelines.
Deployment Commands
Preview Deployment
# Deploy from project root (creates preview URL)
vercel
# Equivalent explicit form
vercel deploy
Git pushes to non-production branches make previews. A project's first deploy goes to production. To undo it, ask the user, then run `vercel remove <id> --yes`.
Production Deployment
# Deploy directly to production
vercel --prod
vercel deploy --prod
# Force a new deployment (skip cache)
vercel --prod --force
Build Locally, Deploy Build Output
# Build locally (uses preview env vars by default)
vercel build
# Build with production env vars
vercel build --prod
# Deploy only the build output (no remote build)
vercel deploy --prebuilt
vercel deploy --prebuilt --prod
**When to use `--prebuilt`:** Custom CI pipelines where you control the build step, need build caching at the CI level, or need to run tests between build and deploy.
**Prebuilt limits:** [System Environment Variables are missing at build time](https://vercel.com/docs/cli/deploy#when-not-to-use---prebuilt), and Next.js Skew Protection needs a [custom deployment ID](https://vercel.com/docs/skew-protection#custom-deployment-id).
Promote & Rollback
# Stage a production deployment without assigning domains
vercel deploy --prod --skip-domain
# Promote it (instant, no rebuild)
vercel promote <deployment-url-or-id>
# Show pending rollback status (no argument does not roll back)
vercel rollback status
# Rollback to a specific deployment
vercel rollback <deployment-url-or-id>
**Promote a production deployment, not a preview.** Promoting a staged production deployment is instant and serves the same build. Promoting a preview rebuilds it with production environment variables, so the tested build is not the one released.
**Rollback turns off auto-assignment.** New production pushes stop going live until `vercel promote` restores it.
Inspect Deployments
# View deployment details (build info, functions, metadata)
vercel inspect <deployment-url>
# List recent deployments
vercel ls
# View recent runtime logs for a deployment
vercel logs --deployment <url>
CI/CD Integration
When to Add a CI Pipeline
The Git integration builds every push, posts preview URLs on pull requests, and deploys the production branch. Use CI for what Vercel does not run: tests, security scans, performance budgets, and approval gates. Gate releases on them with [Deployment Checks](references/deployment-checks.md) while Vercel keeps building. Deploy from CI only when the build must run in your runner, such as to keep source code off Vercel or for GitHub Enterprise Server.
Required Environment Variables
Every CI pipeline needs these three variables:
VERCEL_TOKEN=<your-token> # Personal or team token
VERCEL_ORG_ID=<org-id> # From .vercel/project.json
VERCEL_PROJECT_ID=<project-id> # From .vercel/project.json
Set these as secrets in your CI provider. Never commit them to source control. The CLI reads `VERCEL_TOKEN` from the environment; do not pass `--token`, which exposes it in process lists and logs.
GitHub Actions
name: Deploy to Vercel
on:
push:
branches: [main]
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Vercel Environment
run: vercel pull --yes --environment=production
- name: Build
run: vercel build --prod
- name: Deploy
run: vercel deploy --prebuilt --prodOther CI Pipelines and Backend Access
| Task | Read | | --- | --- | | Post preview URLs on pull requests from GitHub Actions, or deploy from GitLab CI or Bitbucket Pipelines | [references/cli-pipelines.md](references/cli-pipelines.md) | | Let deployed functions reach AWS, GCP, or Vault without static secrets (OIDC federation) | [references/oidc-federation.md](references/oidc-federation.md) | | Deployment Checks, or testing protected deployments from CI
Read more
name: deployments-cicd
description: Vercel deployment and CI/CD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.
metadata:
priority: 6
docs:
- "https://vercel.com/docs/deployments"
- "https://vercel.com/docs/git"
- "https://vercel.com/docs/deployments/promoting-a-deployment"
- "https://vercel.com/docs/deployment-checks"
sitemap: "https://vercel.com/sitemap.xml"
pathPatterns:
- '.github/workflows/*.yml'
- '.github/workflows/*.yaml'
- '.gitlab-ci.yml'
- 'bitbucket-pipelines.yml'
- 'vercel.json'
- 'apps/*/vercel.json'
bashPatterns:
- '\bvercel\s+deploy\b'
- '\bvercel\s+--prod\b'
- '\bvercel\s+promote\b'
- '\bvercel\s+rollback\b'
- '\bvercel\s+inspect\b'
- '\bvercel\s+build\b'
- '\bvercel\s+deploy\s+--prebuilt\b'
validate:
-
pattern: 'cron:\s*[''"]|from\s+[''"](node-cron)[''"]|cron\.schedule\('
message: 'Manual cron scheduling detected. Use Vercel Schedules (beta), not legacy Cron Jobs.'
severity: recommended
skipIfFileContains: 'vercel\.json.*(crons|schedules)|@vercel/schedules'
retrieval:
aliases:
- deploy
- ci cd
- continuous deployment
- release pipeline
intents:
- deploy to vercel
- set up ci cd
- promote deployment
- rollback deploy
entities:
- vercel deploy
- preview
- production
- rollback
- promote
- CI workflowVercel Deployments & CI/CD
You are an expert in Vercel deployment workflows — `vercel deploy`, `vercel promote`, `vercel rollback`, `vercel inspect`, `vercel build`, and CI/CD pipeline integration with GitHub Actions, GitLab CI, and Bitbucket Pipelines.
Deployment Commands
Preview Deployment
# Deploy from project root (creates preview URL) vercel # Equivalent explicit form vercel deploy
Git pushes to non-production branches make previews. A project's first deploy goes to production. To undo it, ask the user, then run `vercel remove <id> --yes`.
Production Deployment
# Deploy directly to production vercel --prod vercel deploy --prod # Force a new deployment (skip cache) vercel --prod --force
Build Locally, Deploy Build Output
# Build locally (uses preview env vars by default) vercel build # Build with production env vars vercel build --prod # Deploy only the build output (no remote build) vercel deploy --prebuilt vercel deploy --prebuilt --prod
**When to use `--prebuilt`:** Custom CI pipelines where you control the build step, need build caching at the CI level, or need to run tests between build and deploy.
**Prebuilt limits:** [System Environment Variables are missing at build time](https://vercel.com/docs/cli/deploy#when-not-to-use---prebuilt), and Next.js Skew Protection needs a [custom deployment ID](https://vercel.com/docs/skew-protection#custom-deployment-id).
Promote & Rollback
# Stage a production deployment without assigning domains vercel deploy --prod --skip-domain # Promote it (instant, no rebuild) vercel promote <deployment-url-or-id> # Show pending rollback status (no argument does not roll back) vercel rollback status # Rollback to a specific deployment vercel rollback <deployment-url-or-id>
**Promote a production deployment, not a preview.** Promoting a staged production deployment is instant and serves the same build. Promoting a preview rebuilds it with production environment variables, so the tested build is not the one released.
**Rollback turns off auto-assignment.** New production pushes stop going live until `vercel promote` restores it.
Inspect Deployments
# View deployment details (build info, functions, metadata) vercel inspect <deployment-url> # List recent deployments vercel ls # View recent runtime logs for a deployment vercel logs --deployment <url>
CI/CD Integration
When to Add a CI Pipeline
The Git integration builds every push, posts preview URLs on pull requests, and deploys the production branch. Use CI for what Vercel does not run: tests, security scans, performance budgets, and approval gates. Gate releases on them with [Deployment Checks](references/deployment-checks.md) while Vercel keeps building. Deploy from CI only when the build must run in your runner, such as to keep source code off Vercel or for GitHub Enterprise Server.
Required Environment Variables
Every CI pipeline needs these three variables:
VERCEL_TOKEN=<your-token> # Personal or team token VERCEL_ORG_ID=<org-id> # From .vercel/project.json VERCEL_PROJECT_ID=<project-id> # From .vercel/project.json
Set these as secrets in your CI provider. Never commit them to source control. The CLI reads `VERCEL_TOKEN` from the environment; do not pass `--token`, which exposes it in process lists and logs.
GitHub Actions
name: Deploy to Vercel
on:
push:
branches: [main]
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Vercel Environment
run: vercel pull --yes --environment=production
- name: Build
run: vercel build --prod
- name: Deploy
run: vercel deploy --prebuilt --prodOther CI Pipelines and Backend Access
| Task | Read | | --- | --- | | Post preview URLs on pull requests from GitHub Actions, or deploy from GitLab CI or Bitbucket Pipelines | [references/cli-pipelines.md](references/cli-pipelines.md) | | Let deployed functions reach AWS, GCP, or Vault without static secrets (OIDC federation) | [references/oidc-federation.md](references/oidc-federation.md) | | Deployment Checks, or testing protected deployments from CI
Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.
Other skills on vercel.
More skills from other plugins.
container
Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…
frontend-forge-fe-oper…
Operate FrontendExtension (FE) resources in frontend-forge: create, update, rebuild, inspect package artifacts, download…
agent-advisor
Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…
agents-sdk
Build, debug, or review Cloudflare Agents SDK applications using the agents package.
Questions about deployments-cicd.
- Which coding agents can use deployments-cicd?
- deployments-cicd installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

