Passer au contenu

📩 Bundle

📩 Manage Application Bundles for DĂ©ploiement in Capgo Cloud, including TĂ©lĂ©charger, compatibility checks, and Chiffrement.

Alias: u

Terminal window
npx @capgo/cli@latest bundle upload

âŹ†ïž TĂ©lĂ©charger a Nouveau Application Bundle to Capgo Cloud for distribution. Version must be > 0.0.0 and unique. Deleted versions cannot be reused for SĂ©curitĂ©. External Option: Store only a URL link (useful for apps >200MB or privacy requirements). Capgo never inspects external content. Ajouter Chiffrement for trustless SĂ©curitĂ©.

Example:

Terminal window
npx @capgo/cli@latest bundle upload com.example.app --path ./dist --channel production

Options:

ParamTypeDescription
-a,stringClé API to link to your Compte
-p,stringPath of the folder to Télécharger, if not provided it will use the webDir set in capacitor.config
-c,stringCanal to link to
-e,stringLink to external URL instead of Télécharger to Capgo Cloud
—iv-session-keystringSet the IV and session key for Bundle URL external
—s3-regionstringRegion for your S3 bucket
—s3-apikeystringClĂ© API for your S3 endpoint
—s3-apisecretstringAPI secret for your S3 endpoint
—s3-endpointstringURL of S3 endpoint
—s3-bucket-namestringName for your AWS S3 bucket
—s3-portstringPort for your S3 endpoint
—no-s3-sslbooleanDĂ©sactiver SSL for S3 TĂ©lĂ©charger
—key-v2stringCustom path for private signing key (v2 system)
—key-data-v2stringPrivate signing key (v2 system)
—Bundle-urlbooleanPrints Bundle URL into stdout
—no-keybooleanIgnore signing key and send clear Mise à jour
—no-code-VĂ©rifierbooleanIgnore checking if notifyAppReady() is called in source code and index present in root folder
—display-iv-sessionbooleanShow in the console the IV and session key used to encrypt the Mise à jour
-b,stringBundle Version number of the Bundle to Télécharger
—linkstringLink to external resource (e.g. GitHub LibĂ©ration)
—commentstringComment À propos this Version, could be a LibĂ©ration Remarque, a commit hash, a commit message, etc.
—min-Mise Ă  jour-VersionstringMinimal Version required to Mise Ă  jour to this Version. Used only if the DĂ©sactiver auto Mise Ă  jour is set to metadata in Canal
—auto-min-Mise à jour-VersionbooleanSet the min Mise à jour Version based on Natif packages
—ignore-metadata-VĂ©rifierbooleanIgnores the metadata (node_modules) VĂ©rifier when uploading
—ignore-checksum-VĂ©rifierbooleanIgnores the checksum VĂ©rifier when uploading
—timeoutstringTimeout for the TĂ©lĂ©charger process in seconds
—multipartboolean[Obsolùte] Use —tus instead. Uses multipart protocol for S3 uploads
—zipbooleanTĂ©lĂ©charger the Bundle using zip to Capgo cloud (legacy)
—tusbooleanTĂ©lĂ©charger the Bundle using TUS to Capgo cloud
—tus-chunk-sizestringChunk size in bytes for TUS resumable uploads (default: auto)
—partialboolean[ObsolĂšte] Use —delta instead. TĂ©lĂ©charger incremental Mises Ă  jour
—partial-onlyboolean[ObsolĂšte] Use —delta-only instead. TĂ©lĂ©charger only incremental Mises Ă  jour, skip full Bundle
—deltabooleanTĂ©lĂ©charger incremental/differential Mises Ă  jour to reduce bandwidth
—delta-onlybooleanTĂ©lĂ©charger only delta Mises Ă  jour without full Bundle (useful for large apps)
—ChiffrĂ©-checksumstringAn ChiffrĂ© checksum (signature). Used only when uploading an external Bundle.
—auto-set-BundlebooleanSet the Bundle in capacitor.config.json
—dry-TĂ©lĂ©chargerbooleanDry TĂ©lĂ©charger the Bundle process, mean it will not TĂ©lĂ©charger the files but Ajouter the row in database (Used by Capgo for internal Test)
—package-jsonstringPaths to package.json files for monorepos (comma-separated)
—node-modulesstringPaths to node_modules directories for monorepos (comma-separated)
—encrypt-partialbooleanEncrypt delta Mise à jour files (auto-enabled for updater > 6.14.4)
—Supprimer-linked-Bundle-on-TĂ©lĂ©chargerbooleanLocates the currently linked Bundle in the Canal you are trying to TĂ©lĂ©charger to, and deletes it
—no-brotli-patternsstringFiles to exclude from Brotli compression (comma-separated globs, e.g., “.jpg,.png”)
—DĂ©sactiver-brotlibooleanCompletely DĂ©sactiver brotli compression even if updater Version supports it
—Version-exists-okbooleanExit successfully if Bundle Version already exists, useful for CI/CD workflows with monorepos
—self-assignbooleanAllow Appareils to auto-join this Canal (Mises à jour Canal setting)
—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 bundle compatibility

đŸ§Ș VĂ©rifier compatibility of a Bundle with a specific Canal in Capgo Cloud to ensure Mises Ă  jour are safe.

Example:

Terminal window
npx @capgo/cli@latest bundle compatibility com.example.app --channel production

Options:

ParamTypeDescription
-a,stringClé API to link to your Compte
-c,stringCanal to Vérifier the compatibility with
—textbooleanOutput text instead of emojis
—package-jsonstringPaths to package.json files for monorepos (comma-separated)
—node-modulesstringPaths to node_modules directories for monorepos (comma-separated)
—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 bundle delete

đŸ—‘ïž Supprimer a specific Bundle from Capgo Cloud, optionally targeting a single Version.

Example:

Terminal window
npx @capgo/cli@latest bundle delete BUNDLE_ID 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)

Alias: l

Terminal window
npx @capgo/cli@latest bundle list

📋 List all Bundles uploaded for an Application in Capgo Cloud.

Example:

Terminal window
npx @capgo/cli@latest bundle 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)

Alias: c

Terminal window
npx @capgo/cli@latest bundle cleanup

đŸ§č Supprimer old Bundles in Capgo Cloud, keeping specified number of recent versions. Bundles linked to Canaux are preserved unless —ignore-Canal is used.

Example:

Terminal window
npx @capgo/cli@latest bundle cleanup com.example.app --bundle=1.0 --keep=3

Options:

ParamTypeDescription
-b,stringBundle Version number of the Application to Supprimer
-a,stringClé API to link to your Compte
-k,stringNumber of versions to keep
-f,stringForce removal
—ignore-CanalbooleanSupprimer Bundles even if linked to Canaux (Avertissement: deletes Canaux too)
—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 bundle encrypt

🔒 Encrypt a zip Bundle for secure external storage. Retourne ivSessionKey for TĂ©lĂ©charger/decryption. Get checksum using ‘Bundle zip —json’.

Example:

Terminal window
npx @capgo/cli@latest bundle encrypt ./myapp.zip CHECKSUM

Options:

ParamTypeDescription
—keystringCustom path for private signing key
—key-datastringPrivate signing key
-j,stringOutput in JSON
Terminal window
npx @capgo/cli@latest bundle decrypt

🔓 Decrypt an ChiffrĂ© Bundle (mainly for Test). Prints base64 session key for verification.

Example:

Terminal window
npx @capgo/cli@latest bundle decrypt ./myapp_encrypted.zip CHECKSUM

Options:

ParamTypeDescription
—keystringCustom path for private signing key
—key-datastringPrivate signing key
—checksumstringChecksum of the Bundle, to verify the integrity of the Bundle
Terminal window
npx @capgo/cli@latest bundle zip

đŸ—œïž CrĂ©er a zip file of your Application Bundle. Retourne checksum for use with Chiffrement. Use —json for machine-readable output.

Example:

Terminal window
npx @capgo/cli@latest bundle zip com.example.app --path ./dist

Options:

ParamTypeDescription
-p,stringPath of the folder to Télécharger, if not provided it will use the webDir set in capacitor.config
-b,stringBundle Version number to name the zip file
-n,stringName of the zip file
-j,stringOutput in JSON
—no-code-VĂ©rifierbooleanIgnore checking if notifyAppReady() is called in source code and index present in root folder
—key-v2booleanUse Chiffrement v2
—package-jsonstringPaths to package.json files for monorepos (comma-separated)