360 Secure SkillHub
360 安全技能中心

Vercel

提供 Vercel CLI 命令参考:安装与登录、部署/提升/回滚、环境变量、域名、项目、实时日志、团队切换及本地开发,并列出 --json、--token、--scope 等全局参数;不含 API 或 MCP 集成,需安装 Vercel CLI 并联网使用。

melvynx
melvynx
热度 84.96
最近更新 2026-05-11 17:30:11
分类:开发依赖:代码执行 / 第三方 API应用场景:DevOps / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add cli-vercel
Metadata
name
vercel
description
Deploy and manage Vercel projects via CLI - deploy, env, domains, logs, teams. Use when user mentions 'vercel', 'deploy', 'vercel project', or wants to interact with Vercel.
category
devtools
install_command
npm i -g vercel

vercel

Setup

npm i -g vercel

Verify installation:

vercel --version

Always use --json flag when calling commands programmatically.

Authentication

vercel login

Resources

Deploy

Command Description
vercel Deploy current project to preview
vercel --prod Deploy current project to production
vercel deploy --prod Deploy to production (explicit)
vercel ls List all deployments
vercel inspect <url> Show details of a deployment
vercel promote <url> Promote a deployment to production
vercel rollback Rollback to previous deployment
vercel redeploy <url> Redeploy an existing deployment

Environment Variables

Command Description
vercel env ls List all environment variables
vercel env add <name> Add a new environment variable
vercel env rm <name> Remove an environment variable
vercel env pull .env.local Pull env vars to a local file

Domains

Command Description
vercel domains ls List all domains
vercel domains add <domain> Add a domain
vercel domains rm <domain> Remove a domain
vercel domains inspect <domain> Show domain details and DNS records

Projects

Command Description
vercel project ls List all projects
vercel project add <name> Create a new project
vercel project rm <name> Remove a project
vercel link Link current directory to a project

Logs

Command Description
vercel logs <url> View realtime logs for a deployment
vercel logs <url> --follow Stream logs in realtime

Teams

Command Description
vercel teams ls List all teams
vercel teams switch Switch to a different team

Local Development

Command Description
vercel dev Start local development server
vercel build Build project locally

Global Flags

Flag Description
--json Output result as JSON
--token <token> Login token
--scope <team> Set scope to a team
--yes Skip confirmation prompts
--cwd <path> Set working directory
--debug Enable debug output