deploy-to-vercel

Deploy projects to Vercel via CLI, git push, or claimable no-auth endpoints.

Updated Aug 11, 2026
One-click install
npx skills add https://github.com/DucCuong159/Realtime-chatapp --skill deploy-to-vercel-duccuong159
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-to-vercel
Source: https://github.com/DucCuong159/Realtime-chatapp/tree/main/.agent/skills/deploy-to-vercel
Command: npx skills add https://github.com/DucCuong159/Realtime-chatapp --skill deploy-to-vercel-duccuong159

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Deploying a project to Vercel involves many branching states: the project may or may not be linked, the CLI may or may not be authenticated, and the environment may be sandboxed. This Skill guides an agent through the correct deployment path for any of these situations and always returns a live URL. ## Core Features & Use Cases - State-aware deploy routing: Checks git remotes, .vercel/project.json or .vercel/repo.json linkage, and CLI authentication before choosing between git push, vercel deploy, or a no-auth fallback script. - Team and scope handling: Lists Vercel teams, prompts for selection when multiple exist, and passes --scope consistently across CLI commands. - No-auth fallback scripts: Ships deploy.sh and deploy-codex.sh that detect the framework from package.json, package the project excluding secrets, upload to a claimable deploy endpoint, and poll until the build completes. - Use Case: A user in a sandboxed chat environment says "deploy my app and give me the link" — the Skill packages the project, deploys it without credentials, and returns a preview URL plus a claim URL to transfer ownership. ## Quick Start Deploy my current project to Vercel as a preview and give me the live link.

Frequently Asked Questions about deploy-to-vercel

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

FAQPage Schema
How do I deploy my app to Vercel from the command line?

Run vercel deploy with the -y and --no-wait flags to get an immediate deployment URL without blocking on the build. If the project is linked and has a git remote, committing and pushing triggers an automatic Vercel deployment instead.

How do I deploy to Vercel without logging in or authenticating the CLI?

Use the bundled deploy.sh or deploy-codex.sh script, which packages your project and uploads it to a claimable deploy endpoint. It returns a preview URL for the live site and a claim URL to transfer the deployment to your Vercel account.

How does Vercel CLI detect which team to deploy to?

Run vercel teams list --format json to see available teams, then pass the chosen slug via --scope on deploy and link commands. If the project is already linked, the orgId in .vercel/project.json or .vercel/repo.json determines the team automatically.

What is the difference between vercel link and vercel link --repo?

vercel link --repo reads the git remote URL and matches it to existing Vercel projects deploying from that repo, creating .vercel/repo.json. Plain vercel link matches by directory name, which often fails when local and Vercel project names differ.

Why does Vercel deployment fail in a sandboxed environment?

Sandboxed environments may block network egress or prevent vercel login. Add *.vercel.com to allowed domains, rerun with escalated network permissions, or fall back to the no-auth deploy script that requires no credentials.

Does the deploy script upload my .env files or node_modules?

No. The packaging step explicitly excludes node_modules, .git, .env, and .env.* files from the tarball. It also refuses to deploy directories containing a .vercelignore file, since it cannot safely reproduce its exclusion semantics.