🔑 获取 API Key 教程
LanderPilot 需要 Cloudflare API Token 来部署页面,NameSilo API Key 来管理域名。本教程教你如何获取。
☁️ Cloudflare API Token
Cloudflare API Token 用于将生成的页面部署到你的 Cloudflare Pages。
注册 Cloudflare(如果还没有账户)
1打开注册页面
2输入邮箱和密码
Cloudflare 免费注册,不需要信用卡。
3验证邮箱
去邮箱点击验证链接,完成注册。
获取 API Token
1登录 Cloudflare Dashboard
访问 dash.cloudflare.com 并登录。
2进入 API Tokens 页面
点击右上角头像 → 「My Profile」→ 左侧菜单选「API Tokens」。
3创建 Token
点击「Create Token」按钮。
4选择模板
推荐选择「Edit Cloudflare Workers」模板,它包含了 Pages 部署所需的权限。
5确认并创建
点击「Continue to summary」→「Create Token」。
6复制 Token
创建成功后会显示 Token,立即复制保存。
获取 Account ID
1登录 Cloudflare Dashboard
在 Dashboard 首页,右侧边栏可以看到「Account ID」。
2复制 Account ID
这是一串 32 位的字母数字组合,类似 e58b6fab...
在 LanderPilot 中配置
1打开 LanderPilot 设置
点击右上角 ⚙️ 齿轮图标。
2填入 Cloudflare 信息
在「Cloudflare」区域,分别粘贴 API Token 和 Account ID。
3保存设置
点击「保存设置」,配置完成。
🌐 NameSilo API Key(可选)
如果你在 NameSilo 购买了域名,可以通过 API Key 实现自动化域名管理。
1登录 NameSilo
访问 namesilo.com 并登录。
2进入 API Manager
点击「My Account」→「API Manager」。
3生成 API Key
如果还没有 Key,点击生成。复制保存。
4在 LanderPilot 中配置
设置 → 域名注册商 → NameSilo API Key → 粘贴 → 保存。