vercel-cli-with-tokens 是什么?
vercel-cli-with-tokens 使用Vercel访问token完成CLI部署、环境变量和域名管理,不依赖交互式login。它先确认身份来源与项目/team,默认创建preview,并把项目关联、Git推送和CLI部署作为不同路线。
中文说明由本站依据来源整理;英文原文保留在页面下方。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
vercel-cli-with-tokens,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 vercel-cli-with-tokens
请在 Codex 的当前工作环境中安装并检查 vercel-cli-with-tokens 这个 Skill。
项目身份:vercel-labs/agent-skills / vercel-cli-with-tokens
来源:https://github.com/vercel-labs/agent-skills/blob/1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62/skills/vercel-cli-with-tokens/SKILL.md
已定位的源文件:skills/vercel-cli-with-tokens/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 vercel-cli-with-tokens
请在 Claude Code 的当前工作环境中安装并检查 vercel-cli-with-tokens 这个 Skill。
项目身份:vercel-labs/agent-skills / vercel-cli-with-tokens
来源:https://github.com/vercel-labs/agent-skills/blob/1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62/skills/vercel-cli-with-tokens/SKILL.md
已定位的源文件:skills/vercel-cli-with-tokens/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 vercel-cli-with-tokens
请在 Cursor Agent 的当前工作环境中安装并检查 vercel-cli-with-tokens 这个 Skill。
项目身份:vercel-labs/agent-skills / vercel-cli-with-tokens
来源:https://github.com/vercel-labs/agent-skills/blob/1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62/skills/vercel-cli-with-tokens/SKILL.md
已定位的源文件:skills/vercel-cli-with-tokens/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 vercel-cli-with-tokens
请在 当前 Agent 的当前工作环境中安装并检查 vercel-cli-with-tokens 这个 Skill。
项目身份:vercel-labs/agent-skills / vercel-cli-with-tokens
来源:https://github.com/vercel-labs/agent-skills/blob/1a2c79d4e6c4a2283dc2c614b6538cbe1ed5ca62/skills/vercel-cli-with-tokens/SKILL.md
已定位的源文件:skills/vercel-cli-with-tokens/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 需要Vercel CLI、已安全配置的VERCEL_TOKEN和明确项目scope。用环境关联项目时VERCEL_ORG_ID与VERCEL_PROJECT_ID要成对设置,不能只给一个。
会得到什么
- 实际部署URL与状态,或获准管理动作的回读结果。
实际使用顺序
- 只确认环境或本地配置是否具备token,不输出秘密值;令牌通过环境供CLI读取,不放--token参数。
- 核对已有.vercel/project.json或repo.json与目标团队;未关联但身份已知时按实际remote选择link --repo或普通link,不用link试探只读状态。
- 目标默认为preview;直接CLI可使用deploy -y --no-wait,随后inspect实际构建状态。Git路线先取得推送授权并确认当前分支是否生产分支。
- 环境变量、域名或套餐管理分别按明确请求执行。构建失败查看inspect --logs;运行日志与构建日志分开,不把返回URL当验收成功。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
教学示例:请用vercel-cli-with-tokens检查当前项目是否具备预览部署条件。只报告token是否存在、项目与scope是否匹配以及构建所需配置,不输出凭证;如果状态明确,再按我授权创建preview,不推Git、不做生产或套餐变更。预期能区分身份、关联和构建问题;本站未部署。
使用条件与边界
- 源文部分示例会打印配置值,本站示例改为仅检查存在性,避免凭证进入日志。
- 该版本要求不以curl/fetch访问部署URL验收;CLI构建状态与公网页面功能是不同证据。
- 价格和套餐权益不能从固定Skill快照直接视为当前报价。
常见问题
为什么有token还会部署到错误项目?
身份只决定谁能访问,项目ID、org/team scope和现有link决定目标。必须同时核对目标,而不是只验证token有效。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/vercel-cli-with-tokens/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
查看源文件章节 / Source sections
- 原文:Vercel CLI with Tokens
- 原文:Step 1: Locate the Vercel Token
- 原文:A) `VERCEL_TOKEN` is already set in the environment
- 原文:B) Token is in a `.env` file under `VERCEL_TOKEN`
- 原文:C) Token is in a `.env` file under a different name
- 原文:D) No token found — ask the user
- 原文:Step 2: Locate the Project and Team
- 原文:CLI Setup
- 原文:Deploying a Project
- 原文:Quick Deploy (have project ID — no linking needed)
- 原文:Full Deploy Flow (no project ID — need to link)
- 原文:Check project state first
- 原文:Link the project
- 原文:Deploy after linking
- 原文:Deploying from a Remote Repository (code not cloned locally)
- 原文:About `.vercel/` Directory
- 原文:Managing Environment Variables
- 原文:Inspecting Deployments
- 原文:Managing Domains
- 原文:Stripe Projects Plan Changes
- 原文:What Pro gives you
- 原文:Working Agreement
- 故障排查 / Troubleshooting
- 原文:Token not found
- 原文:Authentication error
- 原文:Wrong team
- 原文:Build failure
- 原文:CLI not installed
原文:Vercel CLI with Tokens
Deploy and manage projects on Vercel using the CLI with token-based authentication, without relying on `vercel login`.
原文:Step 1: Locate the Vercel Token
Before running any Vercel CLI commands, identify where the token is coming from. Work through these scenarios in order:
原文:A) `VERCEL_TOKEN` is already set in the environment
```bash printenv VERCEL_TOKEN ``` If this returns a value, you're ready. Skip to Step 2.
原文:B) Token is in a `.env` file under `VERCEL_TOKEN`
```bash grep '^VERCEL_TOKEN=' .env 2>/dev/null ``` If found, export it: ```bash export VERCEL_TOKEN=$(grep '^VERCEL_TOKEN=' .env | cut -d= -f2-) ```
原文:C) Token is in a `.env` file under a different name
Look for any variable that looks like a Vercel token (Vercel tokens typically start with `vca_`): ```bash grep -i 'vercel' .env 2>/dev/null ``` Inspect the output to identify which variable holds the token, then export it as `VERCEL_TOKEN`: ```bash export VERCEL_TOKEN=$(grep '^<VARIABLE_NAME>=' .env | cut -d= -f2-) ```
原文:D) No token found — ask the user
If none of the above yield a token, ask the user to provide one. They can create a Vercel access token at vercel.com/account/tokens. --- **Important:** Once `VERCEL_TOKEN` is exported as an environment variable, the Vercel CLI reads it natively — **do not pass it as a `--token` flag**. Putting secrets in command-line arguments exposes them in shell history and process listings. ```bash # Bad — token visible in shell history and process listings vercel deploy --token "vca_abc123" # Good — CLI reads VERCEL_TOKEN from the environment export VERCEL_TOKEN="vca_abc123" vercel deploy ```
文件 SHA256:c06bea99e75eab07fde4fae26069baa002f82f39b53f07981704c2901551dd4c
仓库许可证记录:未提供;not-established,查看来源。
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login —…
这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。
历史收录数据
| Skill标识 | vercel-cli-with-tokens |
|---|---|
| 来源仓库 | vercel-labs/agent-skills |
| 榜单快照 | 2026-07-28 |
| 榜单口径 | Skills.sh累计安装量 |
| 快照名次 | 278 |
| 快照累计安装量 | 74268 |
历史资料说明
- 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
- 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。
此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。
