CLI¶
The Capawesome Cloud Command Line Interface (CLI) can be used to manage your apps and resources from the command line, including Live Updates, Native Builds, and App Submissions.
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.--yes, -y: Skip confirmation prompt.
apps:builds:cancel¶
Cancel an app build.
Options:
--app-id: The ID of the app the build belongs to.--build-id: The ID of the build to cancel.
apps:builds:create¶
Create a new app build.
Options:
--aab: Download the generated AAB file (Android only). Optionally provide a file path.--apk: Download the generated APK file (Android only). Optionally provide a file path.--app-id: The ID of the app to create the build for.--certificate: The name of the certificate to use for the build.--detached: Exit immediately after creating the build without waiting for completion.--environment: The name of the environment to use for the build.--git-ref: The Git reference (branch, tag, or commit SHA) to build.--ipa: Download the generated IPA file (iOS only). Optionally provide a file path.--json: Output in JSON format. This will include additional information such as the build ID.--platform: The platform for the build. Supported values areandroid,ios, andweb.--stack: The name of the stack to use for the build. Must be eithermacos-sequoiaormacos-tahoe.--type: The type of build. For Android, supported values aredebugandrelease. For iOS, supported values aresimulator,development,ad-hoc,app-store, andenterprise. For Web, no type is required.--yes, -y: Skip confirmation prompts.--zip: Download the generated zip file (Web only). Optionally provide a file path.
apps:builds:download¶
Download the build artifacts for an app build.
Options:
- --app-id: The ID of the app the build belongs to.
- --build-id: The ID of the build to download artifacts for.
- --aab: Download the generated AAB file (Android only). Optionally provide a file path.
- --apk: Download the generated APK file (Android only). Optionally provide a file path.
- --ipa: Download the generated IPA file (iOS only). Optionally provide a file path.
apps:builds:logs¶
Display the logs for a ongoing or completed app build.
Options:
- --app-id: The ID of the app the build belongs to.
- --build-id: The ID of the build to display logs for.
apps:channels:create¶
Create a new channel for an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--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.--protected: Whether to protect the channel or not. Defaults tofalse.
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.--yes, -y: Skip confirmation prompt.
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:pause¶
Pause an app channel.
Options:
--app-id: The ID of the app.--channel: The name of the channel to pause.
apps:channels:resume¶
Resume an app channel.
Options:
--app-id: The ID of the app.--channel: The name of the channel to resume.
apps:channels:update¶
Update an existing channel from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--channel-id: The ID of the channel.--name: The name of the channel.--protected: Whether to protect the channel or not.
apps:deployments:cancel¶
Cancel an ongoing app deployment.
Options:
--app-id: The ID of the app the deployment belongs to.--deployment-id: The ID of the deployment to cancel.
apps:deployments:create¶
Create a new app deployment.
Options:
--app-id: The ID of the app to create the deployment for.--build-id: The ID of the build to deploy. Alternative to--build-number.--build-number: The build number to deploy (e.g., "1", "42"). Alternative to--build-id.--channel: The name of the channel to deploy the build to (Web only).--destination: The name of the destination to deploy to (Android/iOS only).--detached: Exit immediately after creating the deployment without waiting for completion.
apps:deployments:logs¶
Display the logs for a ongoing or completed app deployment.
Options:
- --app-id: The ID of the app the deployment belongs to.
- --deployment-id: The ID of the deployment to display logs for.
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.--yes, -y: Skip confirmation prompt.
apps:environments:create¶
Create a new environment for an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--name: The name of the environment.
apps:environments:delete¶
Delete an environment from an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--environment-id: The ID of the environment. Either the ID or name must be provided.--name: The name of the environment. Either the ID or name must be provided.--yes, -y: Skip confirmation prompt.
apps:environments:list¶
List all environments for an app in Capawesome Cloud.
Options:
--app-id: The ID of the app.--json: Output in JSON format.--limit: The maximum number of environments to return.--offset: The offset to start returning environments from.
apps:environments:set¶
Set environment variables and secrets for an environment in Capawesome Cloud.
Options:
--app-id: The ID of the app.--environment-id: The ID of the environment.--variable: Environment variable inkey=valueformat. Can be specified multiple times.--variable-file: Path to a file containing environment variables in.envformat.--secret: Environment secret inkey=valueformat. Can be specified multiple times.--secret-file: Path to a file containing environment secrets in.envformat.
apps:environments:unset¶
Unset environment variables and secrets for an environment in Capawesome Cloud.
Options:
--app-id: The ID of the app.--environment-id: The ID of the environment.--variable: Key of the environment variable to unset. Can be specified multiple times.--secret: Key of the environment secret to unset. Can be specified multiple times.
apps:liveupdates:bundle¶
Generate manifest file and compress web assets into a zip file.
Options:
--input-path: Path to the web assets directory.--output-path: Output path for the generated artifact file. Defaults to./bundle.zip.--overwrite: Overwrite output file if it already exists. Defaults tofalse.--skip-manifest: Skip manifest file generation. Defaults tofalse.
apps:liveupdates:generatemanifest¶
Generate a manifest file.
Options:
--path: Path to the web assets folder (e.g.wwwordist).
apps:liveupdates:generatesigningkey¶
Generate a new code signing key pair for Live Updates. This command creates an RSA key pair that can be used to sign and verify Live Updates bundles.
Options:
--key-size: The RSA key size in bits. Must be2048,3072, or4096. Defaults to2048.--public-key-path: Path where the public key should be saved. Defaults topublic.pem.--private-key-path: Path where the private key should be saved. Defaults toprivate.pem.
apps:liveupdates:rollback¶
Rollback the active build in a channel to a previous deployment.
Options:
--app-id: The ID of the app.--channel: The name of the channel to rollback.--steps: The number of deployments to go back (1-5).
apps:liveupdates:rollout¶
Update the rollout percentage of the active build in a channel.
Options:
--app-id: The ID of the app.--channel: The name of the channel to update rollout for.--percentage: The rollout percentage (0-100).
apps:liveupdates:upload¶
Upload a locally built bundle and deploy it to a channel.
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. Deprecated, use--git-refinstead.--commit-ref: The commit ref of the Git commit that the bundle is linked to. Deprecated, use--git-refinstead.--commit-sha: The commit SHA of the Git commit that the bundle is linked to. Deprecated, use--git-refinstead.--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.--git-ref: The Git reference (branch, tag, or commit SHA) to associate with the bundle.--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 private key to sign the bundle with. Can be a file path to a .pem file or the private key content as plain text.--rollout-percentage: The percentage of devices to deploy the bundle to. Must be an integer between 0 and 100.--yes, -y: Skip confirmation prompts.
apps:liveupdates:register¶
Register a self-hosted bundle URL and deploy it to a channel.
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.--channel: The channel to deploy the bundle to.--commit-message: The commit message of the Git commit that the bundle is linked to. Deprecated, use--git-refinstead.--commit-ref: The commit ref of the Git commit that the bundle is linked to. Deprecated, use--git-refinstead.--commit-sha: The commit SHA of the Git commit that the bundle is linked to. Deprecated, use--git-refinstead.--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.--git-ref: The Git reference (branch, tag, or commit SHA) to associate with the bundle.--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: Path to zip file for code signing only.--private-key: The private key to sign the bundle with. Can be a file path to a .pem file or the private key content as plain text.--rollout-percentage: The percentage of devices to deploy the bundle to. Must be an integer between 0 and 100.--url: The URL to the self-hosted bundle file. The URL must start withhttps://.--yes, -y: Skip confirmation prompts.
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.
organizations:create¶
Create a new organization in Capawesome Cloud.
Options:
--name: The name of the organization.