
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-codeInstalls 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
More from vercel-labs/agent-skills
All 14- Vercel Optimize126K
- Writing Guidelines122.4K
- Vercel Deploy534
- Vercel Composition Patterns
- Vercel React Best Practices
- Vercel React Native Skills
- Vercel React View Transitions
- Vercel React Best Practices885.1K
- Web Design Guidelines843.6K
- Vercel Composition Patterns446.4K
- Vercel React Native Skills271.9K
- Deploy To Vercel187.4K
- Vercel React View Transitions185.5K