360 Secure SkillHub
360 安全技能中心

Vercel

该 Skill 说明如何用 npx vercel CLI 管理 Vercel 项目:在含 .git 的项目根目录执行 vercel link 与 vercel git connect 关联仓库以启用自动部署,用 printf 管道向 production 环境写入变量(禁止 echo),并用 vercel domains ls 查看域名列表。文中提及 domains.md 但未随包提供。

brennerspear
brennerspear
热度 65.47
最近更新 2026-05-17 12:47:57
分类:开发依赖:代码执行 / 第三方 API应用场景:DevOps / 工作流 / API 集成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add vercel-deployment
Metadata
name
vercel
slug
vercel-deployment
version
1.0.0
description
Deploy and manage Vercel projects, including linking repositories, env vars, and domains.

Vercel — Deploy and Manage Projects

Set Up a New Project

cd <project-root>   # must be the directory with .git
npx vercel link      # link to Vercel project
npx vercel git connect  # connect GitHub repo for auto-deploys

Run vercel git connect from the repo root (where .git lives), not a subdirectory.

Set Environment Variables

NEVER use echo — it adds a trailing \n:

printf 'value' | npx vercel env add VAR_NAME production

Check Domains

cd any-vercel-project && npx vercel domains ls

For the full domain list: see domains.md in this folder.