npx skills add https://github.com/vercel/vercel --skill vercel-cliVercel CLI (vercel 或 vc) 用于从命令行在 Vercel 平台上部署、管理和开发项目。使用 vercel <命令> -h 可查看任何命令的完整标志详情。
命令必须在包含 .vercel 文件夹的目录(或其子目录)中运行。.vercel 文件夹的设置方式取决于你的项目结构:
.vercel/project.json : 由 vercel link 命令创建。链接单个项目。适用于单项目仓库,如果在 monorepo 中只有一个项目也可以使用。.vercel/repo.json : 由 vercel link --repo 命令创建。链接可能包含多个项目的仓库。当任何项目具有非根目录(例如 )时,这通常是个好主意。广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
apps/web从项目子目录(例如 apps/web/)运行命令会跳过“选择哪个项目?”的提示,因为这是明确的。
当出现问题时,请首先检查链接方式 — 查看 .vercel/ 文件夹中的内容,是 project.json 还是 repo.json。同时使用 vercel whoami 验证你是否在正确的团队中 — 在错误的团队中进行链接是一个常见错误。
npm i -g vercel
vercel login
vercel link # 单项目
# 或
vercel link --repo # monorepo
vercel pull
vercel dev # 本地开发
vercel deploy # 预览部署
vercel --prod # 生产部署
使用此树状图导航到正确的参考文件:
references/deployment.mdreferences/local-development.mdreferences/environment-variables.mdreferences/ci-automation.mdreferences/domains-and-dns.mdreferences/projects-and-teams.mdreferences/monitoring-and-debugging.mdreferences/storage.mdreferences/integrations.mdvercel curl(参见 references/monitoring-and-debugging.md)vercel api 作为备用方案(参见 references/advanced.md)references/node-backends.mdreferences/monorepos.mdreferences/bun.mdreferences/flags.mdreferences/advanced.mdreferences/global-options.mdreferences/getting-started.mdvercel link 会创建 project.json,它只跟踪一个项目。应改用 vercel link --repo。当出现问题时,首先检查 .vercel/。.vercel/ 不存在,许多命令会隐式运行 vercel link。这会创建 project.json,这可能是错误的。应首先显式运行 vercel link(或 --repo)。vercel whoami 检查,使用 vercel teams switch 切换。--yes : 需要此标志来跳过交互式提示。vercel build 后使用 vercel deploy 而未加 --prebuilt : 构建输出将被忽略。VERCEL_TOKEN 环境变量而非 --token。vercel curl 来访问预览部署。每周安装量
1.5K
代码仓库
GitHub 星标数
15.1K
首次出现
2026年2月10日
安全审计
安装于
codex1.5K
opencode1.4K
gemini-cli1.4K
github-copilot1.4K
kimi-cli1.4K
amp1.4K
The Vercel CLI (vercel or vc) deploys, manages, and develops projects on the Vercel platform from the command line. Use vercel <command> -h for full flag details on any command.
Commands must be run from the directory containing the .vercel folder (or a subdirectory of it). How .vercel gets set up depends on your project structure:
.vercel/project.json : Created by vercel link. Links a single project. Fine for single-project repos, and can work in monorepos if there's only one project..vercel/repo.json : Created by vercel link --repo. Links a repo that may contain multiple projects. Always a good idea when any project has a non-root directory (e.g., apps/web).Running from a project subdirectory (e.g., apps/web/) skips the "which project?" prompt since it's unambiguous.
When something goes wrong, check how things are linked first — look at what's in .vercel/ and whether it's project.json or repo.json. Also verify you're on the right team with vercel whoami — linking while on the wrong team is a common mistake.
npm i -g vercel
vercel login
vercel link # single project
# OR
vercel link --repo # monorepo
vercel pull
vercel dev # local development
vercel deploy # preview deployment
vercel --prod # production deployment
Use this to route to the correct reference file:
references/deployment.mdreferences/local-development.mdreferences/environment-variables.mdreferences/ci-automation.mdreferences/domains-and-dns.mdreferences/projects-and-teams.mdreferences/monitoring-and-debugging.mdvercel link creates project.json, which only tracks one project. Use vercel link --repo instead. When things break, check .vercel/ first.vercel link if .vercel/ doesn't exist. This creates project.json, which may be wrong. Run vercel link (or --repo) explicitly first.vercel whoami to check, to change.Weekly Installs
1.5K
Repository
GitHub Stars
15.1K
First Seen
Feb 10, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
codex1.5K
opencode1.4K
gemini-cli1.4K
github-copilot1.4K
kimi-cli1.4K
amp1.4K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
references/storage.mdreferences/integrations.mdvercel curl (see references/monitoring-and-debugging.md)vercel api as a fallback (see references/advanced.md)references/node-backends.mdreferences/monorepos.mdreferences/bun.mdreferences/flags.mdreferences/advanced.mdreferences/global-options.mdreferences/getting-started.mdvercel teams switch--yes in CI: Required to skip interactive prompts.vercel deploy after vercel build without --prebuilt: The build output is ignored.VERCEL_TOKEN env var instead of --token.vercel curl instead to access preview deploys.