Passer au contenu

📢 Canal

📢 Manage distribution Canaux for Application Mises à jour in Capgo Cloud, controlling how Mises à jour are delivered to Appareils.

Alias: a

Terminal window
npx @capgo/cli@latest channel add

➕ Créer a Nouveau Canal for Application distribution in Capgo Cloud to manage Mise à jour delivery.

Example:

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

Options:

ParamTypeDescription
-d,stringSet the Canal as default
—self-assignbooleanAllow Appareil to self-assign to this Canal
-a,stringClé API to link to your Compte
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo Développement)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: d

Terminal window
npx @capgo/cli@latest channel delete

🗑️ Supprimer a Canal 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
-a,stringClé API to link to your Compte
—Supprimer-BundlebooleanSupprimer the Bundle associated with the Canal
—Succès-if-not-foundbooleanSuccès if the Canal is not found
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo Développement)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: l

Terminal window
npx @capgo/cli@latest channel list

📋 List all Canaux configured for an Application in Capgo Cloud to review distribution Paramètres.

Example:

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

Options:

ParamTypeDescription
-a,stringClé API to link to your Compte
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo Développement)
—supa-anonstringCustom Supabase anon key (for self-hosting)
Terminal window
npx @capgo/cli@latest channel currentBundle

📦 Get the current Bundle linked to a specific Canal in Capgo Cloud for Mise à jour tracking.

Example:

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

Options:

ParamTypeDescription
-c,stringCanal to get the current Bundle from
-a,stringClé API to link to your Compte
—quietbooleanOnly print the Bundle Version
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo Développement)
—supa-anonstringCustom Supabase anon key (for self-hosting)

Alias: s

Terminal window
npx @capgo/cli@latest channel set

⚙️ Configure Paramètres for a Canal, such as linking a Bundle, setting Mise à jour strategies (major, minor, metadata, patch, none), or Appareil targeting (iOS, Android, dev, emulator). One Canal must be default.

Example:

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

Options:

ParamTypeDescription
-a,stringClé API to link to your Compte
-b,stringBundle Version number of the file to set
-s,stringSet the state of the Canal, default or normal
—latest-remotebooleanGet the latest Bundle uploaded in capgo cloud and set it to the Canal
—latestbooleanGet the latest Version key in the package.json to set it to the Canal
—downgradebooleanAllow to downgrade to Version under Natif one
—no-downgradebooleanDésactiver downgrade to Version under Natif one
—iOSbooleanAllow sending Mise à jour to iOS Appareils
—no-iOSbooleanDésactiver sending Mise à jour to iOS Appareils
—AndroidbooleanAllow sending Mise à jour to Android Appareils
—no-AndroidbooleanDésactiver sending Mise à jour to Android Appareils
—self-assignbooleanAllow Appareil to self-assign to this Canal
—no-self-assignbooleanDésactiver Appareils to self-assign to this Canal
—Désactiver-auto-Mise à jourstringBlock Mises à jour by type: major, minor, metadata, patch, or none (allows all)
—devbooleanAllow sending Mise à jour to Développement Appareils
—no-devbooleanDésactiver sending Mise à jour to Développement Appareils
—emulatorbooleanAllow sending Mise à jour to emulator Appareils
—no-emulatorbooleanDésactiver sending Mise à jour to emulator Appareils
—package-jsonstringPaths to package.json files for monorepos (comma-separated)
—ignore-metadata-VérifierbooleanIgnore checking node_modules compatibility if present in the Bundle
—supa-hoststringCustom Supabase host URL (for self-hosting or Capgo Développement)
—supa-anonstringCustom Supabase anon key (for self-hosting)