跳过内容

📱 应用

📱 在 Capgo 中管理您的应用设置和配置,Capgo Cloud

添加

➕ 添加

别名: a

终端窗口
npx @capgo/cli@latest app add

➕ 为 Capgo Cloud 添加一个新的应用程序,使用唯一的应用程序 ID 格式为 com.test.app。 如果未提供,则所有选项都可以从配置中推断。

示例:

终端窗口
npx @capgo/cli@latest app add com.example.app --name "My App" --icon ./icon.png

选项:

参数类型描述
-nstring在 Capgo Cloud 中显示的应用名称
-istring在 Capgo Cloud 中显示的应用图标路径
-astringAPI 账户关联密钥
--supa-hoststring自主托管或 Capgo 开发环境的自定义 Supabase 主机 URL
--supa-anonstring自主托管环境的自定义 Supabase 匿名密钥

🗑️ 删除

标题:删除
终端窗口
npx @capgo/cli@latest app delete

🗑️ 从 Capgo Cloud 中删除一个应用,选填指定版本删除特定包。

示例:

终端窗口
npx @capgo/cli@latest app delete com.example.app

选项:

参数类型描述
-astringAPI 账户关联的密钥
—自定义主机stringCustom Supabase host URL (for self-hosting or Capgo development)
—自定义匿名密钥string自定义 Supabase 匿名密钥(用于自主托管)

📋 列表

标题:列表

别名: l

终端窗口
npx @capgo/cli@latest app list

📋 列表所有在Capgo中注册的应用程序

示例:

终端窗口
npx @capgo/cli@latest app list

选项:

参数类型描述
-astringAPI
__CAPGO_KEEP_0__string自定义 Supabase 主机 URL(用于自主托管或Capgo开发)
自定义 Supabase 匿名密钥(用于自主托管)string调试

🐞 —supa-host

Section titled “ Debug”
终端窗口
npx @capgo/cli@latest app debug

🐞 在 Capgo Cloud 中实时监听更新事件来调试您的应用。 可选地,针对特定设备进行详细诊断。

示例:

终端窗口
npx @capgo/cli@latest app debug com.example.app --device DEVICE_ID

选项:

参数类型描述
-astringAPI key to link to your account
-dstringThe specific device ID to debug
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringSetting

⚙️ Section titled “ ⚙️ Setting”

Terminal window
Copy to clipboard
npx @capgo/cli@latest app setting

⚙️ Modify Capacitor configuration programmatically. Specify setting path (e.g., plugins.CapacitorUpdater.defaultChannel) with —string or —bool.

示例:

终端窗口
npx @capgo/cli@latest app setting plugins.CapacitorUpdater.defaultChannel --string "Production"

选项:

参数类型描述
—boolstring一个布尔值,用于修改设置,例如:—bool true
—stringstring一个字符串值,用于修改设置,例如:—string “Production”

别名: s

终端窗口
npx @capgo/cli@latest app set

⚙️ Update settings for an existing app in Capgo Cloud, such as name, icon, or retention period for bundles. Retention of 0 means infinite storage.

示例:

终端窗口
npx @capgo/cli@latest app set com.example.app --name "Updated App" --retention 30

选项:

参数类型描述
-nstring应用名称(在Capgo Cloud中显示)
-istring本地图像文件路径(png,jpg,webp,svg)用于Capgo Cloud中的应用图标
-astringAPI账户关联密钥
-rstring保留旧包的天数(0 = 无限,默认:0)
--expose-metadatastring将包元数据(链接和评论)暴露给插件(true/false,默认:false)
--previewboolean为此应用启用包和频道预览二维码
—no-previewboolean关闭本应用的打包和频道预览二维码
—allow-device-custom-idboolean允许设备为本应用设置自定义设备ID
—no-allow-device-custom-idboolean不允许本应用的设备设置自定义设备ID
—block-provider-infra-requestsboolean阻止本应用的服务提供商基础设施请求
—no-block-provider-infra-requestsboolean允许本应用的服务提供商基础设施请求
—build-timeout-minutesstring本地构建超时时间(分钟,范围:5-360,默认值:15)
—ios-app-store-urlstringiOS App Store URL for this app
—android-app-store-urlstringGoogle Play Store URL for this app
—default-upload-channelstringDefault upload channel name for this app
—default-download-channelstringDefault download channel name for this app (sets channel public=true)
—disable-download-channelsbooleanDisable Capgo download channels for this app (sets all channels public=false)
—custom-supabase-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstring自定义 Supabase 匿名密钥(适用于自托管)