Skip to content

Bundles

Bundles contain the code of the web layer of your app. They are used to deliver updates to your app in real-time without having to resubmit your app to the app stores.

Create a bundle

In order to create a bundle (aka "deploy a live update") on the Capawesome Cloud, you must first create the bundle locally by compiling your web application. In Angular, for example, you can bundle your app by running ng build. This will create a dist folder containing the compiled web assets.

Prevent invalid bundles

Each bundle must contain an index.html file at the root level of the folder (see Capacitor Configuration).

Use the Capawesome CLI to create a zip archive of the web assets and upload it to the Capawesome Cloud.

To create a new bundle, use the apps:bundles:create command:

npx capawesome apps:bundles:create

You will be prompted to select the app you want to create the bundle for and to provide the path to the bundle. Optionally, you can also specify a channel to associate the bundle with. The CLI will then create a zip archive of the bundle and upload it to the Capawesome Cloud.

Delete a bundle

A bundle can also be deleted at any time.

To delete a bundle, open the Capawesome Cloud Console, navigate to the app you want to delete the bundle for, and select the bundle you want to delete. In the menu, click on the "Delete" button to delete the bundle.

Delete Bundle

To delete a bundle, use the apps:bundles:delete command:

npx capawesome apps:bundles:delete

You will be prompted to select the app you want to delete the bundle for and to provide the ID of the bundle. The CLI will then delete the bundle from the Capawesome Cloud.