Skip to content

CLI Usage

Every update involves two main steps:

  1. Exporting your app: Generating the static assets and JavaScript bundles using Expo’s standard tooling.
  2. Uploading to the server: Syncing the generated files to Cloudflare R2 and registering the update metadata in D1.

Run the following command to generate the dist folder:

Terminal window
npx expo export --platform ios --platform android

The custom CLI tool automates the process of uploading assets and publishing the manifest.

Execute the publish command from your project root:

Terminal window
npx expo-edge-cli publish --branch production --message "Fixed the checkout bug"

The CLI automatically:

  • Detects the current Git branch and Commit Hash.
  • Uploads all assets from the dist folder to your Cloudflare R2 bucket.
  • Publishes the metadata manifest to your Hono Worker.