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
热度 53.17
最近更新 2026-05-17 12:47:57

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add brennerspear/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.