Skip to content

📢 channel

📢 Manage distribution channels for app updates in Capgo Cloud, controlling how updates are delivered to devices.

Alias: a

Terminal window
npx @capgo/cli@latest channel add

➕ Create a new channel for app distribution in Capgo Cloud to manage update delivery.

Example:

Terminal window
npx @capgo/cli@latest channel add production com.example.app --default

Options:

ParamTypeDescription
-dbooleanSet the channel as default
—self-assignbooleanAllow device to self-assign to this channel
-astringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: d

Terminal window
npx @capgo/cli@latest channel delete

🗑️ Delete a channel from Capgo Cloud, optionally removing associated bundles to free up resources.

Example:

Terminal window
npx @capgo/cli@latest channel delete production com.example.app

Options:

ParamTypeDescription
-astringAPI key to link to your account
—delete-bundlebooleanDelete the bundle associated with the channel. An App Preview key can atomically delete only its own preview channel and linked, unshared bundle.
—success-if-not-foundbooleanSuccess if the channel is not found
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: l

Terminal window
npx @capgo/cli@latest channel list

📋 List all channels configured for an app in Capgo Cloud to review distribution settings.

Example:

Terminal window
npx @capgo/cli@latest channel list com.example.app

Options:

ParamTypeDescription
-astringAPI key to link to your account
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)
Terminal window
npx @capgo/cli@latest channel currentBundle

📦 Get the current bundle linked to a specific channel in Capgo Cloud for update tracking.

Example:

Terminal window
npx @capgo/cli@latest channel currentBundle production com.example.app

Options:

ParamTypeDescription
-cstringChannel to get the current bundle from
-astringAPI key to link to your account
—quietbooleanOnly print the bundle version
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: s

Terminal window
npx @capgo/cli@latest channel set

⚙️ Configure settings for a channel, such as linking a bundle, setting update strategies (major, minor, metadata, patch, none), or device targeting (iOS, Android, dev, prod, emulator, device). One channel must be default.

Example:

Terminal window
npx @capgo/cli@latest channel set production com.example.app --bundle 1.0.0 --state default

Options:

ParamTypeDescription
-astringAPI key to link to your account
-bstringBundle version number of the file to set
-sstringSet the state of the channel, default or normal
—latest-remotebooleanGet the latest bundle uploaded in capgo cloud and set it to the channel
—latestbooleanGet the latest version key in the package.json to set it to the channel
—downgradebooleanAllow to downgrade to version under native one
—no-downgradebooleanDisable downgrade to version under native one
—iosbooleanAllow sending update to iOS devices
—no-iosbooleanDisable sending update to iOS devices
—androidbooleanAllow sending update to Android devices
—no-androidbooleanDisable sending update to Android devices
—self-assignbooleanAllow device to self-assign to this channel
—no-self-assignbooleanDisable devices to self-assign to this channel
—disable-auto-updatestringBlock updates by type: major, minor, metadata, patch, or none (allows all)
—rollout-bundlestringBundle version to release gradually on this channel
—rollout-percentagestringRollout percentage from 0 to 100
—rollout-percentage-bpsstringRollout percentage in basis points from 0 to 10000
—rollout-enablebooleanEnable the configured rollout
—rollout-disablebooleanDisable the configured rollout
—rollout-pausebooleanPause rollout exposure without rolling back selected devices
—rollout-resumebooleanResume a paused rollout
—rollout-rollbackbooleanClear rollout state and return devices to stable
—rollout-promotebooleanPromote rollout target to stable and clear rollout state
—rollout-cache-ttl-secondsstringCloudflare rollout decision cache TTL in seconds
—auto-pause-enabledbooleanEnable rollout auto-pause policy
—auto-pause-disabledbooleanDisable rollout auto-pause policy
—auto-pause-window-minutesstringStats window for rollout auto-pause
—auto-pause-failure-rate-bpsstringFailure-rate threshold in basis points
—auto-pause-confidencestringConfidence level between 0 and 1
—auto-pause-min-attemptsstringMinimum install plus fail attempts before auto-pause can trigger
—auto-pause-min-failuresstringMinimum failures before auto-pause can trigger
—auto-pause-actionstringAuto-pause action: pause, rollback, or notify
—auto-pause-cooldown-minutesstringCooldown before auto-pause can trigger again
—devbooleanAllow sending update to development devices
—no-devbooleanDisable sending update to development devices
—prodbooleanAllow sending update to production devices
—no-prodbooleanDisable sending update to production devices
—emulatorbooleanAllow sending update to emulator devices
—no-emulatorbooleanDisable sending update to emulator devices
—devicebooleanAllow sending update to physical devices
—no-devicebooleanDisable sending update to physical devices
—qr-previewbooleanPrint a terminal QR code for this channel preview after updating it
—send-update-notificationbooleanSend a native update-check notification to devices after updating the linked channel bundle
—package-jsonstringPaths to package.json files for monorepos (comma-separated)
—ignore-metadata-checkbooleanIgnore checking node_modules compatibility if present in the bundle
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo development)
—supa-anonstringCustom Supabase anon key (for self-hosting)