vercel-cli-with-tokens

Deploy and manage Vercel projects using CLI token-based authentication.

Updated Aug 3, 2026
One-click install
npx skills add https://github.com/arfaomar/NotebookLM-Clone --skill vercel-cli-with-tokens-arfaomar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vercel-cli-with-tokens
Source: https://github.com/arfaomar/NotebookLM-Clone/tree/main/.agents/skills/vercel-cli-with-tokens
Command: npx skills add https://github.com/arfaomar/NotebookLM-Clone --skill vercel-cli-with-tokens-arfaomar

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires vercel.

What problem does it solve? Deploying to Vercel from CI pipelines, scripts, or agent environments is blocked by the interactive vercel login flow. This Skill enables full Vercel project management using access tokens, without any interactive authentication. ## Core Features & Use Cases - Token Discovery & Setup: Locates VERCEL_TOKEN from the environment or .env files, exports it securely, and avoids exposing secrets via --token CLI flags. - Deployment Workflows: Supports quick deploys with VERCEL_PROJECT_ID, full link-and-deploy flows with vercel link --repo, git-push deployments, and preview-by-default with explicit production opt-in. - Project Management: Manages environment variables, domains, deployment inspection, build/runtime logs, and Stripe-managed plan upgrades or downgrades. - Use Case: An AI agent in a headless environment needs to deploy a Next.js app to a team's Vercel project. It finds the token in .env, exports VERCEL_TOKEN and VERCEL_ORG_ID, runs vercel deploy --scope my-team -y --no-wait, and returns the preview URL. ## Quick Start Deploy this project to Vercel as a preview using the token in my .env file.

Frequently Asked Questions about vercel-cli-with-tokens

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy to Vercel without interactive login?

Export a Vercel access token as the VERCEL_TOKEN environment variable and the CLI reads it natively. Then run vercel deploy with your team scope, for example vercel deploy --scope my-team -y --no-wait, with no login prompt required.

How do I set environment variables on Vercel from the CLI?

Pipe the value into vercel env add, such as echo "value" | vercel env add VAR_NAME production --scope my-team. You can list variables with vercel env ls, pull them locally with vercel env pull, or remove them with vercel env rm.

Should I pass the Vercel token with the --token flag?

No. Passing tokens via --token exposes secrets in shell history and process listings. Export VERCEL_TOKEN as an environment variable instead and let the Vercel CLI read it natively.

Why does Vercel CLI authentication fail with a token?

The token may be expired or invalid. Verify it by running vercel whoami, which uses VERCEL_TOKEN from the environment. If it fails, create a fresh access token at vercel.com/account/tokens and export the new value.

Can I deploy to Vercel without linking a project first?

Yes, if both VERCEL_ORG_ID and VERCEL_PROJECT_ID are set in the environment, the CLI targets the project directly and skips the .vercel directory. Both variables must be set together; setting only one causes an error.

How do I check Vercel build logs for a failed deployment?

Run vercel inspect <deployment-url> --logs to view build logs, which requires Vercel CLI v35 or later. For runtime request logs, use vercel logs <deployment-url>, which follows live output by default.