🔹 get-qr
复制包含安装步骤和该插件完整 Markdown 指南的配置 prompt。
🔳 为 bundle 或 channel 预览打印终端 QR code。
npx @capgo/cli@latest get-qr必须为应用启用预览。 示例: 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 用于关联您的账户的密钥 |
| —bundle | string | 要预览的 Bundle 名称或 ID |
| —channel | string | 要预览的 Channel 名称或 ID |
| —type | string | 位置参数 target 的类型 |
| —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(用于自托管) |