← 返回 Skills 市场
fanyao00-cloud

byted-bp-cdn-pagesdeploy

作者 fanyao00-cloud · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
41
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install byted-bp-cdn-pagesdeploy
功能描述
将静态网页代码一键部署到 BytePlus / 火山引擎 Edge Pages 平台,支持自动创建项目、更新部署、绑定域名和 CDN 加速。
使用说明 (SKILL.md)

Pages Deploy Skill

Overview

将静态网页代码一键部署到 BytePlus / 火山引擎 Edge Pages 平台。适用于在 Coding Agent(Cursor、Claude Code、Trae 等)中生成静态网页后,快速完成托管、构建和 CDN 接入。

使用场景

  • Coding Agent 生成了静态网页代码,需要部署上线
  • 需要将本地静态站点部署到全球 CDN
  • 需要为部署的站点绑定自定义域名
  • 需要对已有 Pages 项目进行迭代更新

前置条件

  1. AK/SK 配置:需要 BytePlus / 火山引擎的 Access Key 和 Secret Key
    • Mira 客户端:存储在 secrets/byteplus.json,格式:{"access_key": "xxx", "secret_key": "xxx"}
    • 手动配置:nest config set -g cloud.access_key YOUR_AK && nest config set -g cloud.secret_key YOUR_SK
  2. 静态站点目录:包含 index.html 的目录

CLI 命令

完整部署(首次 + 更新自动判断)

# 自动判断:项目不存在则创建,已存在则更新部署
bash /path/to/scripts/deploy.sh --name my-site --dir ./dist

# 指定描述和加速区域
bash /path/to/scripts/deploy.sh --name my-site --dir ./dist --desc "AI generated site" --region global

# 绑定自定义域名
bash /path/to/scripts/deploy.sh --name my-site --dir ./dist --domain www.example.com

参数说明

参数 必填 说明
--name Pages 项目名称
--dir 静态站点资源目录(需含 index.html)
--desc 项目描述
--region 加速区域:global / chinese_mainland / outside_chinese_mainland
--domain 自定义域名
--build-cmd 部署前执行的构建命令(如 npm run build
--secrets-file AK/SK 配置文件路径(默认 secrets/byteplus.json)

其他操作

# 查看项目列表
bash /path/to/scripts/manage.sh list

# 查看项目详情
bash /path/to/scripts/manage.sh get --pages p-xxx

# 查看部署历史
bash /path/to/scripts/manage.sh deployments --pages p-xxx

# 本地预览
bash /path/to/scripts/manage.sh serve --dir ./dist --port 8080

# 域名管理
bash /path/to/scripts/manage.sh domain-list --pages p-xxx
bash /path/to/scripts/manage.sh domain-add --pages p-xxx --domain www.example.com
bash /path/to/scripts/manage.sh domain-verify --pages p-xxx --domain www.example.com

# 下线/删除
bash /path/to/scripts/manage.sh offline --pages p-xxx
bash /path/to/scripts/manage.sh delete --pages p-xxx

完整工作流

Step 0: 环境准备(一次性)→ 安装 CLI + 配置 AK/SK
Step 1: Coding Agent 生成代码 → ./my-site/
Step 2: 本地预览 → nest pages serve ./my-site
Step 3: 部署 → deploy.sh --name xxx --dir ./my-site
Step 4: 查看域名 → manage.sh get --pages p-xxx
Step 5: 绑定域名 → deploy.sh --name xxx --dir ./my-site --domain www.example.com
Step 6: 迭代更新 → deploy.sh --name xxx --dir ./my-site
Step 7: 管理 → manage.sh list / deployments / offline

注意事项

  • 国内生产环境不提供默认域名,必须绑定自定义域名才能访问
  • CLI 包名为 @byteplus/nest(非 @byted/nest
  • 部署后 CDN 生效需 1-5 分钟
  • 自定义域名需到 DNS 服务商添加 CNAME 记录
安全使用建议
Use this skill only if you trust the BytePlus nest CLI and are comfortable giving it cloud deployment credentials. Review commands before running them, avoid untrusted --build-cmd, --desc, or --region values, and use limited-scope AK/SK keys for Pages deployment.
能力评估
Purpose & Capability
The deploy, domain, preview, and project-management actions are coherent with the stated static-site deployment purpose, but they can mutate real cloud/CDN resources including creating, updating, offlining, or deleting Pages projects.
Instruction Scope
The deploy script exposes raw shell execution through --build-cmd and also uses eval on dynamically assembled CLI arguments, which is broader than normal scoped deployment parameters.
Install Mechanism
There is no install spec, but the scripts install @byteplus/nest from npm at runtime without a pinned version. This is purpose-aligned but introduces package provenance risk.
Credentials
The skill requires BytePlus/VolcEngine AK/SK credentials and uploads a user-selected static site directory, which is expected for deployment but high-impact.
Persistence & Privilege
The scripts persist the nest CLI under the user's home directory and save cloud credentials into the nest global config. No hidden background process or self-propagation is shown.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install byted-bp-cdn-pagesdeploy
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /byted-bp-cdn-pagesdeploy 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of byted-bp-cdn-pagesdeploy. - Deploy static web projects to BytePlus / Volcano Engine Edge Pages with one command. - Supports automatic project creation, updates, custom domain binding, and CDN acceleration. - Offers CLI tools for full deployment, project management, deployment history, and domain management. - Requires BytePlus Access Key/Secret Key and a directory containing index.html. - Suitable for quickly publishing and iterating static sites generated by Coding Agents.
元数据
Slug byted-bp-cdn-pagesdeploy
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

byted-bp-cdn-pagesdeploy 是什么?

将静态网页代码一键部署到 BytePlus / 火山引擎 Edge Pages 平台,支持自动创建项目、更新部署、绑定域名和 CDN 加速。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 41 次。

如何安装 byted-bp-cdn-pagesdeploy?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install byted-bp-cdn-pagesdeploy」即可一键安装,无需额外配置。

byted-bp-cdn-pagesdeploy 是免费的吗?

是的,byted-bp-cdn-pagesdeploy 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

byted-bp-cdn-pagesdeploy 支持哪些平台?

byted-bp-cdn-pagesdeploy 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 byted-bp-cdn-pagesdeploy?

由 fanyao00-cloud(@fanyao00-cloud)开发并维护,当前版本 v1.0.0。

💬 留言讨论