Agent skill · practicalswan

vercel-cli-with-tokens

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. \"deploy to vercel\", \"set up vercel\", \"add environment variables to vercel\".

What it needs

About 8k tokens when loaded.

What this skill does

Vercel CLI with Tokens Deploy and manage projects on Vercel using the CLI with token-based authentication, without relying on vercel login. Step 1: Locate the Vercel Token Before running any Vercel CLI commands, identify where the token is coming from. Work through these scenarios in order: A) VERCELTOKEN is already set in the environment If this returns a value, you're ready. Skip to Step 2. B) Token is already managed by the project environment C) No token found — stop at a safe handoff Never ask the user to paste a token into chat, a command, or a log. Ask them to configure VERCELTOKEN through their approved secret manager or local environment, or to complete vercel login locally. If neither is available, report that authentication is a prerequisite and stop before making a request. --- Important: Once VERCELTOKEN is exported as an environment variable, the Vercel CLI reads it natively — do not pass it as a --token flag. Putting secrets in command-line arguments exposes them in shell history and process listings. Step 2: Locate the Project and Team Similarly, check for the project ID and team scope. These let the CLI target the right project without needing vercel link. If you have a project URL (e.g. https://vercel.com/my-team/my-project), extract the team slug: If you have both VERCELORGID and VERCELPROJECTID in your environment, export them — the CLI will use these automatically and skip any .vercel/ directory: Note: VERCELORGID and VERCELPROJECTID must be set together — setting only one causes an error. CLI Setup Ensure the Vercel CLI is installed and up to date: Deploying a Project Always deploy as preview unless the user explicitly requests production. Choose a method based on what you have available. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills practicalswan/vercel-cli-with-tokens

View the source on GitHub

Browse the @skills marketplace