Vercel Client
@theholocron/vercel-client is a typed wrapper around the Vercel API for managing deployments, projects, and environment variables.
Installation
Section titled “Installation”pnpm add @theholocron/vercel-clientimport { createVercelClient } from "@theholocron/vercel-client";
const client = createVercelClient({ token: process.env.VERCEL_TOKEN, teamId: process.env.VERCEL_TEAM_ID,});
const projects = await client.projects.list();const deployment = await client.deployments.trigger({ projectId: "prj-123" });const envVars = await client.env.list("prj-123", "production");Configuration
Section titled “Configuration”teamId is required when accessing team-owned resources (projects, deployments, env vars). Without it, requests target personal account resources only. You can find the team ID in Vercel dashboard → Team Settings → General.
Namespaces
Section titled “Namespaces”| Namespace | Covers |
|---|---|
deployments |
Triggering and reading deployments |
env |
Project environment variables |
projects |
Projects |
user |
The authenticated user |
The full API reference is generated from the package’s TSDoc comments.