vercel-install-auth
/vercel-install-auth
Instaluje Vercel CLI i konfiguruje uwierzytelnianie tokenem API, w tym tworzenie tokenów, vercel link i logowanie.
- Autor
- jeremylongshore ↗
- Repozytorium
- tons-of-skills-marketplace ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 6
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Instaluje Vercel CLI i konfiguruje uwierzytelnianie tokenem API, w tym tworzenie tokenów, vercel link i logowanie.
Wyzwalacze z opisu
Oryginalny opis (EN)
Install Vercel CLI and configure API token authentication. Use when setting up Vercel for the first time, creating access tokens, or initializing a project with vercel link. Trigger with phrases like "install vercel", "setup vercel", "vercel auth", "configure vercel token", "vercel login".
Jak działa
- Overview
- Prerequisites
- Instructions
- Token Scopes Reference
- Output
- Error Handling
- .gitignore Setup
- Examples
- Resources
- Next Steps
Podgląd SKILL.md
---
name: vercel-install-auth
description: 'Install Vercel CLI and configure API token authentication.
Use when setting up Vercel for the first time, creating access tokens,
or initializing a project with vercel link.
Trigger with phrases like "install vercel", "setup vercel",
"vercel auth", "configure vercel token", "vercel login".
'
allowed-tools: Read, Write, Edit, Bash(npm:*), Bash(npx:*), Bash(vercel:*), Grep
version: 1.18.0
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
tags:
- saas
- vercel
- authentication
- cli
- setup
compatibility: Designed for Claude Code
---
# 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
```bash
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
```bash
# Opens browser for OAuth login, stores token in ~/.config/com.vercel.cli
vercel login
# Or login with a specific email
vercel login your@email.com
# 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:
```bash
# 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
```bash
# 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
```bash
# 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
```bash
# 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
| Scope | Access | Use Case |
|-------|--------|----------|
| Full Account | All projects, all teams | Personal dev |
| Team-scoped | One team only | Team CI/CD |
| Project-scoped | One project only | Per-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
| Error | Cause | Solution |
|-------|-------|----------|
| `Error: No token found` | Not logged in, no VERCEL_TOKEN | Run `vercel login` or export VERCEL_TOKEN |
| `Error: Invalid token` | Token expired or revoked | Generate new token at vercel.com/account/tokens |
| `EACCES permission denied` | Global install without sudo | Use `npx vercel` or install with `--prefix ~/.npm-global` |
| `Error: Team not found` | Wrong VERCEL_ORG_ID | Check team ID in Vercel dashboard > Settings > General |
| `fetch failed` | Network or proxy issue | Check `HTTPS_PROXY` env var, ensure port 443 outbound |
## `.gitignore` Setup
```gitignore
# Vercel
.vercel/
.env*.local
```
## Examples
### Set up a least-privilege local CLI session
Install the CLI through the project package manager or `npx`, authenticate with the organization’s approved short-lived token mechanism, and run `vercel link` only after confirming the intended team and project ID. Keep `.vercel/` and local environment files ignored, and use `vercel env pull` only into a local ignored file. Verify access with a non-destructive project inspection, then revoke any temporary token once setup is complete.
## Resources
- [Vercel CLI Overview](https://vercel.com/docs/cli)
- [Access Tokens](https://vercel.com/docs/rest-api#creating-an-access-token)
- [CLI Project Linking](https://vercel.com/docs/cli/project-linking)
- [Vercel REST API Reference](https://vercel.com/docs/rest-api)
## Next Steps
After successful auth, proceed to `vercel-hello-world` for your first deployment.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · jeremylongshore/tons-of-skills-marketplace | 100 | MIT |
| HelixDevelopment/agent | 100 | MIT |
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 28.10.2026 · wersja paczki 46a1948e6cd1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100vercel-deploy
Wdraża projekty na Vercel przez CLI z uwierzytelnianiem tokenem, w tym Next.js i strony statyczne. - 100vercel-deploy
Wdraża projekty na Vercel przez CLI z uwierzytelnianiem tokenem, w tym Next.js i strony statyczne. - 100vercel-cli-with-tokens
Wdraża projekty w Vercel i zarządza nimi przy uwierzytelnianiu tokenem dostępu, bez logowania interaktywnego. - 100vercel-cli-with-tokens
Wdraża projekty na Vercel i zarządza nimi przez CLI z tokenem dostępu zamiast interaktywnego logowania, na przykład wdrożenia i zmienne środowiskowe. - 100vercel-cli-with-tokens
Wdraża projekty na Vercel i zarządza nimi przez CLI z tokenem dostępu zamiast interaktywnego logowania, na przykład wdrożenia i zmienne środowiskowe. - 100vercel-cli-with-tokens
Wdraża projekty na Vercel i zarządza nimi przez CLI z tokenem dostępu zamiast interaktywnego logowania, na przykład wdrożenia i zmienne środowiskowe.