con un clic
vercel
Deploy frontend applications to Vercel using the Vercel CLI
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
Deploy frontend applications to Vercel using the Vercel CLI
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Deploy backend services and databases to Railway using the Railway CLI
Deploy web services, static sites, and workers to Render using the Render CLI
Handle interactive CLI commands safely using tmux (local execution only)
Basado en la clasificación ocupacional SOC
| name | vercel |
| description | Deploy frontend applications to Vercel using the Vercel CLI |
| metadata | {"version":"2.0.0","author":"OpenOps Team"} |
| risk_level | write |
| platforms | ["vercel"] |
| requires | {"cli":"vercel","install":"npm install -g vercel"} |
Use this skill when:
Verify installation:
vercel --version
npm install -g vercel
The user must be logged in to Vercel CLI:
To check auth status:
vercel whoami
vercel login
If VERCEL_TOKEN is provided, above command will login through non-interactive mode.
Else, this's required to be ran in interactive mode to open the browser to authorize.
| Framework | Auto-detected | Build Command | Output Directory |
|---|---|---|---|
| Next.js | Yes | next build | .next |
| Create React App | Yes | npm run build | build |
| Vue CLI | Yes | npm run build | dist |
| Vite | Yes | npm run build | dist |
| Nuxt | Yes | nuxt build | .nuxt |
| Astro | Yes | npm run build | dist |
| SvelteKit | Yes | npm run build | .svelte-kit |
Deploy to a preview URL (recommended for testing):
cd /path/to/project
vercel --yes
Expected output:
Vercel CLI 32.x.x
🔍 Inspect: https://vercel.com/team/project/xxx
✅ Preview: https://project-xxx.vercel.app
Deploy to the production domain:
cd /path/to/project
vercel --prod --yes
Expected output:
Vercel CLI 32.x.x
🔍 Inspect: https://vercel.com/team/project/xxx
✅ Production: https://project.vercel.app
vercel list
Expected output:
> 3 Deployments found under username
my-app https://my-app.vercel.app 2h ago
my-api https://my-api.vercel.app 1d ago
portfolio https://portfolio.vercel.app 3d ago
vercel inspect <deployment-url>
vercel env add VARIABLE_NAME
Interactive prompt for value and target environments (production/preview/development).
For non-interactive:
echo "value" | vercel env add VARIABLE_NAME production
vercel env ls
vercel env pull
Creates .env.local with all environment variables.
vercel link
Links current directory to an existing Vercel project.
Before deploying, check:
package.json for framework detectionvercel.json configurationIf vercel.json exists, validate it. Common structure:
{
"version": 2,
"framework": "nextjs",
"buildCommand": "npm run build",
"outputDirectory": ".next"
}
If there are any placeholder-like or missing value (such as backend url, ...), figure out it by yourself from project analysis and deployment history.
cd /path/to/project
vercel --yes # Preview
vercel --prod --yes # Production
Parse the output URL and confirm deployment is live.
| Error Output | Cause | Action |
|---|---|---|
Error: Not authenticated | Not logged in | Ask permission, then run vercel login in interactive mode (tmux) when no VERCEL_TOKEN is available; re-check with vercel whoami |
Error: No Project Settings found | First deploy | Execute vercel --yes to set up |
Error: Build Failed | Build error | Analyze build logs, then fix the issue |
Error: forbidden | Token lacks permissions / wrong account | Ask permission, then run vercel login in interactive mode (tmux) to re-authenticate; re-check with vercel whoami |
command not found: vercel | CLI not installed | Ask permission, then install CLI |
Look for lines containing:
✅ Preview: or ✅ Production: followed by URL🔍 Inspect: followed by dashboard URLLook for:
Error: prefixBuild Failed messageSimple deployment (already set up):
User: "Deploy my project to Vercel"
Agent: [executes: vercel whoami]
Agent: "You're logged in as user@example.com. Deploying to preview..."
Agent: [executes: vercel --yes]
Agent: "Deployed! Your app is live at https://project-xxx.vercel.app"
Production deployment:
User: "Deploy to production"
Agent: "Deploying to production..."
Agent: [executes: vercel --prod --yes]
Agent: "Production deployment complete! Live at https://project.vercel.app"
vercel link to connect to existing projectsvercel env commands, not .env files in gitrootDirectory in vercel.json for specific app--yes flag to skip confirmation prompts in automated workflows