@@ -330,7 +330,7 @@ Create a new release history for a specific binary app version.
330330** Example:**
331331- Create a new release history for the binary app version ` 1.0.0 ` .
332332
333- ```
333+ ``` bash
334334npx code-push create-history --binary-version 1.0.0 --platform ios --identifier staging
335335```
336336
@@ -342,7 +342,7 @@ Display the release history for a specific binary app version.
342342** Example:**
343343- Show the release history for the binary app version ` 1.0.0 ` .
344344
345- ```
345+ ``` bash
346346npx code-push show-history --binary-version 1.0.0 --platform ios --identifier staging
347347```
348348
@@ -354,11 +354,15 @@ Release a CodePush update for a specific binary app version.
354354** Example:**
355355- Release a CodePush update ` 1.0.1 ` targeting the binary app version ` 1.0.0 ` .
356356
357- ```
357+ ``` bash
358358npx code-push release --binary-version 1.0.0 --app-version 1.0.1 \
359359 --platform ios --identifier staging --entry-file index.js \
360360 --mandatory true
361+
362+ # Expo project
363+ npx code-push release --type expo --binary-version 1.0.0 --app-version 1.0.1 --platform ios
361364```
365+ - ` --type ` : Project type (react-native (default) | expo)
362366- ` --binary-version ` : The version of the binary app that the CodePush update is targeting.
363367- ` --app-version ` : The version of the CodePush update itself.
364368
@@ -375,7 +379,7 @@ Update the release history for a specific CodePush update.
375379** Example:**
376380- Rollback the CodePush update ` 1.0.1 ` (targeting the binary app version ` 1.0.0 ` ).
377381
378- ```
382+ ``` bash
379383npx code-push update-history --binary-version 1.0.0 --app-version 1.0.1 \
380384 --platform ios --identifier staging \
381385 --enable false
@@ -386,10 +390,16 @@ npx code-push update-history --binary-version 1.0.0 --app-version 1.0.1 \
386390Create a CodePush bundle file.
387391
388392** Example:**
389- ```
393+ ``` bash
390394npx code-push bundle --platform android --entry-file index.js
395+
396+ # Expo project
397+ npx code-push bundle --type expo --platform android --entry-file index.js
391398```
399+ - ` --type ` : Project type (react-native (default) | expo)
392400
393401By default, the bundle file is created in the ` /build/bundleOutput ` directory.
394402
403+ > [ !NOTE] For Expo projects, the CLI uses ` expo export:embed ` command for bundling instead of React Native's bundle command.
404+
395405(The file name represents a hash value of the bundle content.)
0 commit comments