Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

vercel

БесплатноБез исполняемых скриптовНе проверен

Vercel CLI deploys websites, web apps and serverless functions to the Vercel platform from a terminal or CI job, and manages their environment variables…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Vercel CLI — Deploy, preview and ship from the terminal

Overview

The vercel command (alias vc) uploads a project, builds it on Vercel and returns a URL. Every deployment is either a preview (unique URL, safe to share) or production (serves the project's domains). The same CLI links a directory to a project, manages environment variables, reads logs, and promotes or rolls back releases. Use it when Git-push deploys are not enough: local previews, scripted releases, CI pipelines on other providers, or debugging a broken deploy.

Instructions

Installation

npm i -g vercel
vercel --version

In CI, install per job with npm install --global vercel@latest. An experimental native build exists as @vercel/vc-native; it replaces the global vercel and vc commands, so install it only when the user asks for it.

Authentication

vercel login opens a browser flow and needs a human. Ask the user to run it once, then confirm with:

vercel whoami

For CI and unattended runs, authenticate with a token. The user creates it at https://vercel.com/account/tokens (or with vercel tokens add "CI deploy") and exposes it as VERCEL_TOKEN. The CLI reads that variable on its own; prefer it over --token, which leaks into process lists and logs.

export VERCEL_ORG_ID="team_9fK2mQx7LpVbT3"      # "orgId" in .vercel/project.json
export VERCEL_PROJECT_ID="prj_Hc81dRzW4nYs0Pq"  # "projectId" in .vercel/project.json
vercel deploy --yes                              # VERCEL_TOKEN is already set in the environment

With VERCEL_ORG_ID and VERCEL_PROJECT_ID set, no linking step is needed.

Link a directory to a project

vercel link --yes --team lumenfield --project storefront-web

This writes .vercel/project.json with orgId and projectId. To unlink, the user removes the .vercel directory. Use --cwd apps/storefront on any command to work from another directory.

Deploy

vercel deploy                        # preview deployment
vercel deploy --prod                 # production deployment
vercel deploy --prod --skip-domain   # production build, domains not switched yet
vercel deploy --target=staging       # custom environment
vercel deploy --dry                  # show detected framework and files, upload nothing

Standard output is always the deployment URL and nothing else; progress and errors go to standard error. Capture the URL instead of parsing text:

PREVIEW_URL=$(vercel deploy --yes)
vercel inspect "$PREVIEW_URL" --wait --timeout=5m

A non-zero exit code means the deployment failed. Add --logs to stream the build log while deploying.

Build locally, upload only the output

vercel pull --yes --environment=preview
vercel build
vercel deploy --prebuilt --archive=tgz

vercel pull caches project settings and variables under .vercel/; vercel build writes .vercel/output. For production use --environment=production, vercel build --prod and vercel deploy --prebuilt --prod. Source code never leaves the machine in this flow.

Environment variables

vercel env ls production
printf '%s' "$STRIPE_WEBHOOK_SECRET" | vercel env add STRIPE_WEBHOOK_SECRET production
printf '%s' "$STRIPE_WEBHOOK_SECRET" | vercel env update STRIPE_WEBHOOK_SECRET production --yes
vercel env add NEXT_PUBLIC_API_URL preview --git-branch feature-gift-cards --value "https://api-preview.lumenfield.co"
vercel env pull .env.local                       # development values, default file name
vercel env run -e preview -- npm test            # inject values without writing a file

The value comes from stdin, from --value (fine for public settings, not for secrets), or from an interactive prompt. Values added to production or preview are stored as sensitive by default and cannot be read back later. Environments are production, preview, development, or a custom environment name.

Inspect and debug

vercel list --prod
vercel list --status ERROR,BUILDING
vercel inspect https://storefront-web-k3x9p2m4q.vercel.app --logs
vercel logs --environment production --level error --since 1h
vercel logs --status-code 5xx --json | jq -r '.message'
vercel logs --follow --deployment https://storefront-web-k3x9p2m4q.vercel.app

inspect --logs prints build logs. logs prints request logs for the last 24 hours (100 entries unless --limit is set); --follow streams runtime logs for up to 5 minutes.

Promote, roll back, redeploy

vercel promote https://storefront-web-k3x9p2m4q.vercel.app
vercel rollback https://storefront-web-7hd2b0wzc.vercel.app
vercel rollback status
vercel redeploy https://storefront-web-k3x9p2m4q.vercel.app

promote points the production domains at an existing deployment; promoting a preview build asks for confirmation (--yes skips it) and creates a new production deployment. Undo a rollback by promoting the newer deployment again.

Domains

vercel domains
Полный SKILL.md на GitHub

Установить vercel в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл vercel?

Vercel CLI deploys websites, web apps and serverless functions to the Vercel platform from a terminal or CI job, and manages their environment variables, domains and logs. Use when a user asks to deploy to Vercel, create a preview deployment, ship to production, promote or roll back a deployment, add or pull Vercel environment variables, write a vercel.json, read build or runtime logs, or deploy from GitHub Actions with a Vercel token.

Как установить скилл vercel?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл vercel запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить vercel с