vercel-labs avatar

Vercel Cli With Tokens

A comprehensive guide for deploying to Vercel with token authentication instead of interactive login flows. It systematically checks for tokens in environment variables and .env files before asking users, handles project linking through git remotes or direct connection, and covers the full deployment workflow from preview to production. The skill emphasizes security by using environment variables rather than command line flags for tokens, defaults to preview deployments unless production is explicitly requested, and includes environment variable management and domain configuration. Solid choice when you need reliable, automated Vercel deployments without manual authentication steps.

skills.sh installs
150.4K
GitHub stars
33.8K
last updated
Aug 21, 2026

Install

$ npx -y skills add vercel-labs/agent-skills --skill vercel-cli-with-tokens --agent claude-code

Installs into .claude/skills of the current project.

Files

Vercel CLI with Tokens

Deploy and manage projects on Vercel using the CLI with token-based authentication, without relying on vercel login.

Step 1: Locate the Vercel Token

Before running any Vercel CLI commands, identify where the token is coming from. Work through these scenarios in order:

A) VERCEL_TOKEN is already set in the environment

printenv VERCEL_TOKEN

If this returns a value, you're ready. Skip to Step 2.

B) Token is in a .env file under VERCEL_TOKEN

grep '^VERCEL_TOKEN=' .env 2>/dev/null

If found, export it:

export VERCEL_TOKEN=$(grep '^VERCEL_TOKEN=' .env | cut -d= -f2-)

C) Token is in a .env file under a different name

Look for any variable that looks like a Vercel token (Vercel tokens typically start with vca_):

grep -i 'vercel' .env 2>/dev/null

Inspect the output to identify which variable holds the token, then export it as VERCEL_TOKEN:

export VERCEL_TOKEN=$(grep '^<VARIABLE_NAME>=' .env | cut -d= -f2-)

D) No token found — ask the user

Sponsors

Details

Repository
github.com/vercel-labs/agent-skills
Categories
Backend & APIs, Security, DevOps & CI/CD, AI & Agent Building, Release Management, Cloud & Infrastructure, CLI & Terminal

More from vercel-labs/agent-skills

All 14
1higgsfield-ai avatarhiggsfield-video-explainerhiggsfield-ai/skillsBuild a complete non-photoreal narrated explainer or story video from ordered 10-second blocks: one narrator, one universal style key, one Seed Audio take and o140.7Kskills.sh installs
2liarjsdev avatarfingerprint-failure-triageliarjsdev/liarjs-skillsRead a liarjs fingerprint report and attribute each failing check to the component that produced it - what the check id measures, whether the signal comes from 119Kskills.sh installs
3juliusbrussee avatarmigrationjuliusbrussee/cavemanImplement reversible compatibility-safe transitions. Use for schema, data, API, protocol, configuration, or dependency migrations requiring rollback and preserv118.4Kskills.sh installs
42dmurali avatarreview-loop2dmurali/review-loop-skillIterative worker-reviewer cycle that spawns a critic subagent to score work 1-10 and provide actionable feedback, then revises until a quality gate is met. Use 110.9Kskills.sh installs
5microsoft avatarazure-storagemicrosoft/github-copilot-for-azureAzure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool103.2Kskills.sh installs
6microsoft avatarazure-kustomicrosoft/github-copilot-for-azureQuery and analyze data in Azure Data Explorer (Kusto/ADX) using KQL for log analytics, telemetry, and time series analysis. WHEN: KQL queries, Kusto database qu103Kskills.sh installs