agentsclimarketplace

Vercel install auth

Skill jeremylongshore/claude-code-plugins-plus-skills/skills/.curated/vercel-install-auth

425 plugins, 2,810 skills, 200 agents for Claude Code. Open-source marketplace at tonsofskills.com with the ccpi CLI package manager.

Install
npx -y skills add jeremylongshore/claude-code-plugins-plus-skills --skill vercel-install-auth

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

What its author says it does

Copied from the file, not written here

'Install Vercel CLI and configure API token authentication.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

4.4 KB, as published. Nobody here has run it

Vercel Install & Auth

Overview

Install the Vercel CLI, create a scoped access token, and link your local project to a Vercel project. This skill covers both interactive login and headless CI token authentication via the REST API.

Prerequisites

  • Node.js 18+ installed
  • npm, pnpm, or yarn available
  • A Vercel account (hobby, pro, or enterprise)

Instructions

Step 1: Install Vercel CLI

set -euo pipefail
# Global install (recommended)
npm install -g vercel@latest

# Or project-local
npm install --save-dev vercel@latest

# Verify installation
vercel --version

Step 2: Authenticate — Interactive Login

# Opens browser for OAuth login, stores token in ~/.config/com.vercel.cli
vercel login

# Or login with a specific email
vercel login [email protected]

# Login with GitHub
vercel login --github

# Login with GitLab
vercel login --gitlab

Step 3: Authenticate — Headless Token (CI/CD)

Create a token in the Vercel dashboard at Settings > Tokens or via the API:

# Use a pre-created token — set as environment variable
export VERCEL_TOKEN="your-access-token-here"

# The CLI reads VERCEL_TOKEN automatically — no login needed
vercel whoami
# Output: your-username

# Scope the token to a specific team
export VERCEL_ORG_ID="team_xxxxxxxxxxxx"
export VERCEL_PROJECT_ID="prj_xxxxxxxxxxxx"

Step 4: Link Local Project

# Interactive — walks you through project selection
vercel link

# Or link to a specific project by name
vercel link --project my-project-name

# Verify the link — pulls .vercel/project.json
cat .vercel/project.json
# {"orgId":"team_xxx","projectId":"prj_xxx"}

Step 5: Verify Connection via REST API

# Test token against the REST API directly
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
  https://api.vercel.com/v9/projects | jq '.projects[].name'

# List teams
curl -s -H "Authorization: Bearer $VERCEL_TOKEN" \
  https://api.vercel.com/v2/teams | jq '.teams[].name'

Step 6: Pull Environment Variables

# Pull remote env vars to local .env.development.local
vercel env pull .env.development.local

# Pull for a specific environment
vercel env pull --environment=preview

Token Scopes Reference

ScopeAccessUse Case
Full AccountAll projects, all teamsPersonal dev
Team-scopedOne team onlyTeam CI/CD
Project-scopedOne project onlyPer-project automation

Tokens support optional expiration dates. Set short-lived tokens (90 days) for CI and rotate them on a schedule.

Output

  • Vercel CLI installed and on PATH
  • Authentication token stored or environment variable set
  • Local project linked to Vercel project via .vercel/project.json
  • Environment variables pulled to local .env.development.local

Error Handling

ErrorCauseSolution
Error: No token foundNot logged in, no VERCEL_TOKENRun vercel login or export VERCEL_TOKEN
Error: Invalid tokenToken expired or revokedGenerate new token at vercel.com/account/tokens
EACCES permission deniedGlobal install without sudoUse npx vercel or install with --prefix ~/.npm-global
Error: Team not foundWrong VERCEL_ORG_IDCheck team ID in Vercel dashboard > Settings > General
fetch failedNetwork or proxy issueCheck HTTPS_PROXY env var, ensure port 443 outbound

.gitignore Setup

# Vercel
.vercel/
.env*.local

Resources

Next Steps

After successful auth, proceed to vercel-hello-world for your first deployment.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.