CLI Usage
The Publishing Pipeline
Section titled “The Publishing Pipeline”Every update involves two main steps:
- Exporting your app: Generating the static assets and JavaScript bundles using Expo’s standard tooling.
- Uploading to the server: Syncing the generated files to Cloudflare R2 and registering the update metadata in D1.
Step 1: Exporting Your App
Section titled “Step 1: Exporting Your App”Run the following command to generate the dist folder:
npx expo export --platform ios --platform androidUsing the CLI Tool
Section titled “Using the CLI Tool”The custom CLI tool automates the process of uploading assets and publishing the manifest.
1. The publish Command
Section titled “1. The publish Command”Execute the publish command from your project root:
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
distfolder to your Cloudflare R2 bucket. - Publishes the metadata manifest to your Hono Worker.