Deploy to Vercel with token-based CLI auth
Authenticate Vercel CLI via a stored token instead of browser OAuth — the reliable path when clock drift breaks login flows. Use when deploying, linking projects, or scripting CI-style pushes.
Track: ☁️ DevOps & Cloud · Domain: Incidents & Edge Deploys · Level: intermediate · ~15 min
Who this is for: DevOps Engineers, SREs, Cloud Architects, Platform Engineers
When to Use This Skill
Authenticate Vercel CLI via a stored token instead of browser OAuth — the reliable path when clock drift breaks login flows. Use when deploying, linking projects, or scripting CI-style pushes. Use it whenever a matching task appears in conversation — the agent loads these instructions on demand.
Steps
- Read the token from local storage at runtime into a shell variable only
- Never echo, log, commit, or write the token into any file
- Link once per project with vercel link --yes --project --token $tok
- Ship production with vercel deploy --prod --yes --token $tok
- Prefer git push auto-deploys for repos already linked to GitHub integration
- Scope team with --scope when the token spans multiple teams
Common Pitfalls
- Browser login loops caused by PC clock skew — use tokens exclusively
- Tokens pasted into terminal history via inline export
Commands
Install with skills CLI
npx skills add aniruddhaadak80/skills --skill vercel-token-deploy
Install globally
npx skills add aniruddhaadak80/skills --skill vercel-token-deploy -g
Link project
vercel link --yes --project <name> --token $VERCEL_TOKEN
Production deploy
vercel deploy --prod --yes --token $VERCEL_TOKEN
Part of aniruddhaadak80/skills · Browse all at https://skills.sh/aniruddhaadak80/skills