跳转到正文

🔹 get-qr

🔳 为 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

参数类型描述
-astringAPI 用于关联您的账户的密钥
—bundlestring要预览的 Bundle 名称或 ID
—channelstring要预览的 Channel 名称或 ID
—typestring位置参数 target 的类型
—pngstring将预览 QR code 以 PNG 图片写入指定文件路径
—urlboolean仅打印预览 URL(Web 和 deep link),不显示终端 QR code
—web-urlboolean将 Web 预览 URL 编码进 QR code 和 PNG,而不是 capgo:// deep link
—preview-envstring预览 Web URL 环境
—supa-hoststring自定义 Supabase host URL(用于自托管或 Capgo 开发)
—supa-anonstring自定义 Supabase anon key(用于自托管)