🔹 获取二维码
复制一条配置 prompt,包含安装步骤和该插件的完整 Markdown 指南。
🔳 在终端打印二维码 code,用于预览 bundle 或 channel。
npx @capgo/cli@latest get-qr应用必须已启用 Preview 功能。 示例: npx @capgo/cli@latest get-qr com.example.app —bundle 1.2.3 npx @capgo/cli@latest get-qr com.example.app —bundle 123 npx @capgo/cli@latest get-qr com.example.app —channel production npx @capgo/cli@latest get-qr com.example.app production —type channel
选项 (Get-qr)
标题为 “Options (Get-qr)” 的章节| 参数 | 类型 | 描述 |
|---|---|---|
| -a | string | 用于关联账户的 API key |
| —bundle | string | 用于预览的 Bundle 名称或 ID |
| —channel | string | 用于预览的 Channel 名称或 ID |
| —type | string | 位置参数的目标类型 |
| —png | string | 将预览 QR code 以 PNG 图片形式写入指定文件路径 |
| —url | boolean | 仅打印预览 URL(web 和 deep link),不输出终端 QR code |
| —web-url | boolean | 将 web 预览 URL 编码进 QR code 和 PNG,而不是 capgo:// deep link |
| —preview-env | string | 预览 web URL 的环境 |
| —supa-host | string | 自定义 Supabase host URL(用于自托管或 Capgo 开发) |
| —supa-anon | string | 自定义 Supabase anon key(适用于自托管) |