
Vercel CLI
CLIVercel 官方命令行,一条命令把前端与全栈项目部署上线,并管理预览环境、环境变量、域名与日志。官方维护,需要 Vercel 账号(有免费档)。
Vercel
Develop. Preview. Ship.
Usage
Vercel's frontend cloud gives developers frameworks, workflows, and infrastructure to build a faster, more personalized web.
To install the latest version of Vercel CLI, run this command:
npm i -g vercel
To quickly start a new project, run the following commands:
vercel init # Pick an example project
cd <PROJECT> # Change directory to the new project
vercel # Deploy to the cloud
Finally, connect your Git repository to Vercel and deploy with git push.
Documentation
For details on how to use Vercel CLI, check out our documentation.
Local Development
To develop Vercel CLI, first check out the source code, install dependencies, and build all packages:
git clone https://github.com/vercel/vercel.git
cd vercel
pnpm install
pnpm build
At this point you can make modifications to the CLI source code and test them out locally. The CLI source code is located in the packages/cli directory.
cd packages/cli
pnpm vercel <cli-commands...>
From within the packages/cli directory, you can use the "vercel" script to quickly execute Vercel CLI from its TypeScript source code directly (without having to manually compile first). For example:
pnpm vercel deploy
pnpm vercel whoami
pnpm vercel login
pnpm vercel switch --debug
When you are satisfied with your changes, make a commit and create a pull request!
Publishing
Production Releases
Production releases are automated via the release.yml workflow, which runs on every push to main. It uses changesets to determine which packages need new versions. If there are pending changesets, the workflow either creates a "Version Packages" PR or publishes to npm with the latest dist-tag.
To include your changes in a release, add a changeset before merging your PR:
pnpm changeset
Full Testing
pnpm vercel executes a locally built dist. Because this dist lives locally in this monorepo,
the existence of node_modules can sometimes affect the behavior of how vercel CLI picking
up dependencies. To test the full user experience of downloading the CLI from the npm registry:
# build the dist
monorepo_dir=$(pwd)
cd packages/cli && turbo build
# use pnpm pack to create the same tarball that is uploaded to the npm registry
# and store the tarball name in a variable
dist=$(pnpm pack)
# In your test project
cd ~/dev/test-nextjs-proj
npx -p $monorepo_dir/packages/cli/$dist vercel build
相關資源

Vercel Plugin
PluginVercel 官方插件:内置 Vercel 生态知识图谱、数十个技能、部署与性能等专家子代理,以及部署、环境变量、项目状态命令,覆盖 Next.js、AI SDK、存储与 CI/CD。需 Node.js 18+ 与 Bun,默认开启遥测(可关闭)。
vercel/vercel-plugin308
Netlify CLI
CLINetlify 官方命令行:部署站点、用 Netlify Dev 在本地运行项目、管理环境变量、Functions 与 Blobs,并可直接调用 Netlify API。需要 Node.js 22.13 以上与 Netlify 账号登录。
netlify/cli1.9k
Deploy to Vercel
SkillVercel 官方部署技能:先检查 git 远程、项目关联与 CLI 登录状态,再用 git 推送或 vercel deploy 发布预览(默认)或生产环境;沙箱里无法登录时可生成可认领的预览链接。
vercel-labs/agent-skills32.5k
Netlify Skills
PluginNetlify 官方插件,内置 Functions、Edge Functions、Blobs、数据库、表单、缓存、netlify.toml 配置与部署等技能,并接入托管 Netlify MCP(首次使用 OAuth 登录)。
netlify/context-and-tools41
Wrangler
CLICloudflare 官方 Workers 命令行,本地开发调试并部署 Workers,管理 D1、R2、KV 等资源并实时查看日志。官方推荐装在项目内,需要 Cloudflare 账号。
cloudflare/workers-sdk4.6k
cloudflared
CLICloudflare Tunnel 官方客户端:无需开放防火墙端口即可把本地服务暴露到公网,也能代理 SSH、RDP 等 TCP 访问。命名隧道需 Cloudflare 账号与域名,快速隧道可免登录试用。
cloudflare/cloudflared16.2k