Skip to content

Commit 3161b87

Browse files
committed
docs: add Expo support examples to CLI documentation
1 parent d276c46 commit 3161b87

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
334334
npx 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
346346
npx 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
358358
npx 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
379383
npx 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 \
386390
Create a CodePush bundle file.
387391

388392
**Example:**
389-
```
393+
```bash
390394
npx 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

393401
By 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

Comments
 (0)