CLI¶
The Capawesome Cloud Command Line Interface (CLI) can be used to manage Live Updates from the command line.
Installation¶
The Capawesome CLI can be installed globally via npm:
Help¶
The Capawesome CLI ships with command documentation that is accessible with the --help flag.
Command Reference¶
apps:create¶
Create a new app in Capawesome Cloud.
Options:
--name: The name of the app.--organization-id: The ID of the organization to create the app in.
apps:delete¶
Delete an app from Capawesome Cloud.
Options:
--app-id: The ID of the app.
apps:bundles:create¶
Create a new bundle for an app in Capawesome Cloud.
Options:
--android-eq: The exact Android version code (versionCode) that the bundle does not support.--android-max: The maximum Android version code (versionCode) that the bundle supports.--android-min: The minimum Android version code (versionCode) that the bundle supports.--app-id: The ID of the app.--artifact-type: The type of artifact to upload. Must bezipormanifest. Defaults tozip.--channel: The channel to deploy the bundle to.--commit-message: The commit message of the Git commit that the bundle is linked to.--commit-ref: The commit ref of the Git commit that the bundle is linked to.--commit-sha: The commit SHA of the Git commit that the bundle is linked to.--custom-property: A custom property to assign to the bundle. Must be in the formatkey=value. Can be specified multiple times.--expires-in-days: The number of days until the bundle is automatically deleted.--ios-eq: The exact iOS version code (CFBundleVersion) that the bundle does not support.--ios-max: The maximum iOS version code (CFBundleVersion) that the bundle supports.--ios-min: The minimum iOS version code (CFBundleVersion) that the bundle supports.--path: The path to the bundle to upload. Must be a folder or zip archive.--private-key: The path to the private key to sign the bundle with.--rollout: The percentage of devices to deploy the bundle to. Must be a number between 0 and 1 (e.g. 0.5).--url: The url to the self-hosted bundle file. The url must start withhttps://.
apps:bundles:delete¶
Delete a bundle from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--bundle-id: The ID of the bundle.
apps:bundles:update¶
Update an existing bundle for an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--rollout: The percentage of devices to deploy the bundle to. Must be a number between 0 and 1 (e.g. 0.5).--android-max: The maximum Android version code (versionCode) that the bundle supports.--android-min: The minimum Android version code (versionCode) that the bundle supports.--ios-max: The maximum iOS version code (CFBundleVersion) that the bundle supports.--ios-min: The minimum iOS version code (CFBundleVersion) that the bundle supports.
apps:channels:create¶
Create a new channel for an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--bundle-limit: The maximum number of bundles that can be assigned to the channel. If more bundles are assigned, the oldest bundles will be automatically deleted. Defaults to unlimited.--expires-in-days: The number of days until the channel is automatically deleted (including all bundles assigned to the channel). Defaults to never expire.--ignore-errors: Ignore errors when creating the channel. This is useful for CI/CD pipelines where the channel may already exist. Defaults tofalse.--name: The name of the channel.
apps:channels:delete¶
Delete a channel from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--channel-id: The ID of the channel. Either the ID or the name of the channel must be provided.--name: The name of the channel. Either the ID or the name of the channel must be provided.
apps:channels:get¶
Get a channel from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--channel-id: The ID of the channel. Either the ID or the name of the channel must be provided.--json: Output in JSON format.--name: The name of the channel. Either the ID or the name of the channel must be provided.
apps:channels:list¶
List all channels for an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--json: Output in JSON format.--limit: The maximum number of channels to return.--offset: The offset to start returning channels from.
apps:channels:update¶
Update an existing channel from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--bundle-limit: The maximum number of bundles that can be assigned to the channel. If more bundles are assigned, the oldest bundles will be automatically deleted.--channel-id: The ID of the channel.--name: The name of the channel.
apps:devices:delete¶
Delete a device from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--device-id: The ID of the device.
doctor¶
Print various information about the Capawesome CLI and your environment. This is useful for debugging issues with the CLI or your environment.
login¶
Log in to Capawesome Cloud.
Options:
--token: The token to use for authentication.
logout¶
Log out of Capawesome Cloud.
manifests:generate¶
Generate a manifest file for a bundle.
Options:
- --path: The path to the folder containing the bundle files (e.g. www/dist).
organizations:create¶
Create a new organization in Capawesome Cloud.
Options:
--name: The name of the organization.