eas-cli 3.18.3 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -64
- package/build/channel/branch-mapping.d.ts +6 -0
- package/build/channel/branch-mapping.js +10 -1
- package/build/channel/print-utils.js +1 -1
- package/build/channel/utils.d.ts +0 -10
- package/build/channel/utils.js +1 -60
- package/build/commands/channel/edit.js +1 -1
- package/build/commands/channel/rollout.d.ts +14 -2
- package/build/commands/channel/rollout.js +106 -270
- package/build/commands/update/republish.js +6 -6
- package/build/devices/actions/create/action.d.ts +2 -1
- package/build/devices/actions/create/action.js +10 -1
- package/build/devices/actions/create/currentMachineMethod.d.ts +3 -0
- package/build/devices/actions/create/currentMachineMethod.js +100 -0
- package/build/devices/actions/create/developerPortalMethod.js +2 -1
- package/build/devices/actions/create/inputMethod.d.ts +0 -1
- package/build/devices/actions/create/inputMethod.js +6 -64
- package/build/devices/actions/create/utils.d.ts +10 -0
- package/build/devices/actions/create/utils.js +73 -0
- package/build/devices/manager.js +3 -3
- package/build/devices/utils/errors.d.ts +3 -0
- package/build/devices/utils/errors.js +7 -1
- package/build/devices/utils/formatDevice.js +1 -0
- package/build/graphql/generated.d.ts +5 -4
- package/build/graphql/generated.js +1 -0
- package/build/graphql/types/credentials/AppleDevice.js +1 -0
- package/build/rollout/actions/CreateRollout.d.ts +2 -0
- package/build/rollout/actions/CreateRollout.js +82 -5
- package/build/rollout/actions/EditRollout.js +5 -2
- package/build/rollout/actions/EndRollout.d.ts +6 -3
- package/build/rollout/actions/EndRollout.js +22 -21
- package/build/rollout/actions/ManageRollout.d.ts +3 -3
- package/build/rollout/actions/ManageRollout.js +1 -1
- package/build/rollout/actions/NonInteractiveRollout.d.ts +6 -4
- package/build/rollout/actions/NonInteractiveRollout.js +1 -1
- package/build/rollout/actions/RolloutMainMenu.d.ts +4 -4
- package/build/rollout/actions/RolloutMainMenu.js +14 -5
- package/build/rollout/actions/SelectRuntime.d.ts +4 -7
- package/build/rollout/actions/SelectRuntime.js +22 -39
- package/build/rollout/branch-mapping.js +2 -2
- package/build/rollout/utils.d.ts +1 -1
- package/build/rollout/utils.js +5 -5
- package/build/update/republish.js +6 -6
- package/build/utils/relay.js +3 -9
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
- package/build/commands/channel/rollout-preview.d.ts +0 -32
- package/build/commands/channel/rollout-preview.js +0 -140
package/README.md
CHANGED
|
@@ -133,7 +133,7 @@ ALIASES
|
|
|
133
133
|
$ eas login
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/
|
|
136
|
+
_See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/account/login.ts)_
|
|
137
137
|
|
|
138
138
|
## `eas account:logout`
|
|
139
139
|
|
|
@@ -150,7 +150,7 @@ ALIASES
|
|
|
150
150
|
$ eas logout
|
|
151
151
|
```
|
|
152
152
|
|
|
153
|
-
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/
|
|
153
|
+
_See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/account/logout.ts)_
|
|
154
154
|
|
|
155
155
|
## `eas account:view`
|
|
156
156
|
|
|
@@ -167,7 +167,7 @@ ALIASES
|
|
|
167
167
|
$ eas whoami
|
|
168
168
|
```
|
|
169
169
|
|
|
170
|
-
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/
|
|
170
|
+
_See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/account/view.ts)_
|
|
171
171
|
|
|
172
172
|
## `eas analytics [STATUS]`
|
|
173
173
|
|
|
@@ -181,7 +181,7 @@ DESCRIPTION
|
|
|
181
181
|
display or change analytics settings
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/
|
|
184
|
+
_See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/analytics.ts)_
|
|
185
185
|
|
|
186
186
|
## `eas autocomplete [SHELL]`
|
|
187
187
|
|
|
@@ -231,7 +231,7 @@ DESCRIPTION
|
|
|
231
231
|
create a branch
|
|
232
232
|
```
|
|
233
233
|
|
|
234
|
-
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/
|
|
234
|
+
_See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/branch/create.ts)_
|
|
235
235
|
|
|
236
236
|
## `eas branch:delete [NAME]`
|
|
237
237
|
|
|
@@ -252,7 +252,7 @@ DESCRIPTION
|
|
|
252
252
|
delete a branch
|
|
253
253
|
```
|
|
254
254
|
|
|
255
|
-
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
255
|
+
_See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/branch/delete.ts)_
|
|
256
256
|
|
|
257
257
|
## `eas branch:list`
|
|
258
258
|
|
|
@@ -272,7 +272,7 @@ DESCRIPTION
|
|
|
272
272
|
list all branches
|
|
273
273
|
```
|
|
274
274
|
|
|
275
|
-
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/
|
|
275
|
+
_See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/branch/list.ts)_
|
|
276
276
|
|
|
277
277
|
## `eas branch:rename`
|
|
278
278
|
|
|
@@ -292,7 +292,7 @@ DESCRIPTION
|
|
|
292
292
|
rename a branch
|
|
293
293
|
```
|
|
294
294
|
|
|
295
|
-
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/
|
|
295
|
+
_See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/branch/rename.ts)_
|
|
296
296
|
|
|
297
297
|
## `eas branch:view [NAME]`
|
|
298
298
|
|
|
@@ -315,7 +315,7 @@ DESCRIPTION
|
|
|
315
315
|
view a branch
|
|
316
316
|
```
|
|
317
317
|
|
|
318
|
-
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/
|
|
318
|
+
_See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/branch/view.ts)_
|
|
319
319
|
|
|
320
320
|
## `eas build`
|
|
321
321
|
|
|
@@ -345,7 +345,7 @@ DESCRIPTION
|
|
|
345
345
|
start a build
|
|
346
346
|
```
|
|
347
347
|
|
|
348
|
-
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/
|
|
348
|
+
_See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/index.ts)_
|
|
349
349
|
|
|
350
350
|
## `eas build:cancel [BUILD_ID]`
|
|
351
351
|
|
|
@@ -362,7 +362,7 @@ DESCRIPTION
|
|
|
362
362
|
cancel a build
|
|
363
363
|
```
|
|
364
364
|
|
|
365
|
-
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/
|
|
365
|
+
_See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/cancel.ts)_
|
|
366
366
|
|
|
367
367
|
## `eas build:configure`
|
|
368
368
|
|
|
@@ -379,7 +379,7 @@ DESCRIPTION
|
|
|
379
379
|
configure the project to support EAS Build
|
|
380
380
|
```
|
|
381
381
|
|
|
382
|
-
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/
|
|
382
|
+
_See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/configure.ts)_
|
|
383
383
|
|
|
384
384
|
## `eas build:inspect`
|
|
385
385
|
|
|
@@ -414,7 +414,7 @@ DESCRIPTION
|
|
|
414
414
|
inspect the state of the project at specific build stages, useful for troubleshooting
|
|
415
415
|
```
|
|
416
416
|
|
|
417
|
-
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/
|
|
417
|
+
_See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/inspect.ts)_
|
|
418
418
|
|
|
419
419
|
## `eas build:list`
|
|
420
420
|
|
|
@@ -452,7 +452,7 @@ DESCRIPTION
|
|
|
452
452
|
list all builds for your project
|
|
453
453
|
```
|
|
454
454
|
|
|
455
|
-
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/
|
|
455
|
+
_See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/list.ts)_
|
|
456
456
|
|
|
457
457
|
## `eas build:resign`
|
|
458
458
|
|
|
@@ -478,7 +478,7 @@ DESCRIPTION
|
|
|
478
478
|
re-sign a build archive
|
|
479
479
|
```
|
|
480
480
|
|
|
481
|
-
_See code: [src/commands/build/resign.ts](https://github.com/expo/eas-cli/blob/
|
|
481
|
+
_See code: [src/commands/build/resign.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/resign.ts)_
|
|
482
482
|
|
|
483
483
|
## `eas build:run`
|
|
484
484
|
|
|
@@ -502,7 +502,7 @@ DESCRIPTION
|
|
|
502
502
|
run simulator/emulator builds from eas-cli
|
|
503
503
|
```
|
|
504
504
|
|
|
505
|
-
_See code: [src/commands/build/run.ts](https://github.com/expo/eas-cli/blob/
|
|
505
|
+
_See code: [src/commands/build/run.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/run.ts)_
|
|
506
506
|
|
|
507
507
|
## `eas build:submit`
|
|
508
508
|
|
|
@@ -551,7 +551,7 @@ DESCRIPTION
|
|
|
551
551
|
get the latest version from EAS servers
|
|
552
552
|
```
|
|
553
553
|
|
|
554
|
-
_See code: [src/commands/build/version/get.ts](https://github.com/expo/eas-cli/blob/
|
|
554
|
+
_See code: [src/commands/build/version/get.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/version/get.ts)_
|
|
555
555
|
|
|
556
556
|
## `eas build:version:set`
|
|
557
557
|
|
|
@@ -570,7 +570,7 @@ DESCRIPTION
|
|
|
570
570
|
update version of an app
|
|
571
571
|
```
|
|
572
572
|
|
|
573
|
-
_See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/
|
|
573
|
+
_See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/version/set.ts)_
|
|
574
574
|
|
|
575
575
|
## `eas build:version:sync`
|
|
576
576
|
|
|
@@ -589,7 +589,7 @@ DESCRIPTION
|
|
|
589
589
|
update a version in native code with a value stored on EAS servers
|
|
590
590
|
```
|
|
591
591
|
|
|
592
|
-
_See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/
|
|
592
|
+
_See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/version/sync.ts)_
|
|
593
593
|
|
|
594
594
|
## `eas build:view [BUILD_ID]`
|
|
595
595
|
|
|
@@ -606,7 +606,7 @@ DESCRIPTION
|
|
|
606
606
|
view a build for your project
|
|
607
607
|
```
|
|
608
608
|
|
|
609
|
-
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/
|
|
609
|
+
_See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/build/view.ts)_
|
|
610
610
|
|
|
611
611
|
## `eas channel:create [NAME]`
|
|
612
612
|
|
|
@@ -627,7 +627,7 @@ DESCRIPTION
|
|
|
627
627
|
create a channel
|
|
628
628
|
```
|
|
629
629
|
|
|
630
|
-
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/
|
|
630
|
+
_See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/channel/create.ts)_
|
|
631
631
|
|
|
632
632
|
## `eas channel:edit [NAME]`
|
|
633
633
|
|
|
@@ -649,7 +649,7 @@ DESCRIPTION
|
|
|
649
649
|
point a channel at a new branch
|
|
650
650
|
```
|
|
651
651
|
|
|
652
|
-
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/
|
|
652
|
+
_See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/channel/edit.ts)_
|
|
653
653
|
|
|
654
654
|
## `eas channel:list`
|
|
655
655
|
|
|
@@ -669,7 +669,7 @@ DESCRIPTION
|
|
|
669
669
|
list all channels
|
|
670
670
|
```
|
|
671
671
|
|
|
672
|
-
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/
|
|
672
|
+
_See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/channel/list.ts)_
|
|
673
673
|
|
|
674
674
|
## `eas channel:rollout [CHANNEL]`
|
|
675
675
|
|
|
@@ -677,23 +677,31 @@ Roll a new branch out on a channel incrementally.
|
|
|
677
677
|
|
|
678
678
|
```
|
|
679
679
|
USAGE
|
|
680
|
-
$ eas channel:rollout [CHANNEL] [--
|
|
680
|
+
$ eas channel:rollout [CHANNEL] [--action create|edit|end] [--percent <value>] [--outcome
|
|
681
|
+
republish-and-revert|revert] [--branch <value>] [--runtime-version <value>] [--private-key-path <value>] [--json
|
|
682
|
+
--non-interactive]
|
|
681
683
|
|
|
682
684
|
ARGUMENTS
|
|
683
685
|
CHANNEL channel on which the rollout should be done
|
|
684
686
|
|
|
685
687
|
FLAGS
|
|
686
|
-
--
|
|
687
|
-
--
|
|
688
|
-
--json
|
|
689
|
-
--non-interactive
|
|
690
|
-
--
|
|
688
|
+
--action=(create|edit|end) Rollout action to perform
|
|
689
|
+
--branch=<value> Branch to roll out. Use with --action=create
|
|
690
|
+
--json Enable JSON output, non-JSON messages will be printed to stderr.
|
|
691
|
+
--non-interactive Run the command in non-interactive mode.
|
|
692
|
+
--outcome=(republish-and-revert|revert) End outcome of rollout. Use with --action=end
|
|
693
|
+
--percent=<value> Percent of users to send to the new branch. Use with --action=edit or
|
|
694
|
+
--action=create
|
|
695
|
+
--private-key-path=<value> File containing the PEM-encoded private key corresponding to the certificate
|
|
696
|
+
in expo-updates' configuration. Defaults to a file named "private-key.pem" in
|
|
697
|
+
the certificate's directory.
|
|
698
|
+
--runtime-version=<value> Runtime version to target. Use with --action=create
|
|
691
699
|
|
|
692
700
|
DESCRIPTION
|
|
693
701
|
Roll a new branch out on a channel incrementally.
|
|
694
702
|
```
|
|
695
703
|
|
|
696
|
-
_See code: [src/commands/channel/rollout.ts](https://github.com/expo/eas-cli/blob/
|
|
704
|
+
_See code: [src/commands/channel/rollout.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/channel/rollout.ts)_
|
|
697
705
|
|
|
698
706
|
## `eas channel:view [NAME]`
|
|
699
707
|
|
|
@@ -716,7 +724,7 @@ DESCRIPTION
|
|
|
716
724
|
view a channel
|
|
717
725
|
```
|
|
718
726
|
|
|
719
|
-
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/
|
|
727
|
+
_See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/channel/view.ts)_
|
|
720
728
|
|
|
721
729
|
## `eas config`
|
|
722
730
|
|
|
@@ -737,7 +745,7 @@ DESCRIPTION
|
|
|
737
745
|
display project configuration (app.json + eas.json)
|
|
738
746
|
```
|
|
739
747
|
|
|
740
|
-
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/
|
|
748
|
+
_See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/config.ts)_
|
|
741
749
|
|
|
742
750
|
## `eas credentials`
|
|
743
751
|
|
|
@@ -754,7 +762,7 @@ DESCRIPTION
|
|
|
754
762
|
manage credentials
|
|
755
763
|
```
|
|
756
764
|
|
|
757
|
-
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/
|
|
765
|
+
_See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/credentials.ts)_
|
|
758
766
|
|
|
759
767
|
## `eas device:create`
|
|
760
768
|
|
|
@@ -768,7 +776,7 @@ DESCRIPTION
|
|
|
768
776
|
register new Apple Devices to use for internal distribution
|
|
769
777
|
```
|
|
770
778
|
|
|
771
|
-
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/
|
|
779
|
+
_See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/device/create.ts)_
|
|
772
780
|
|
|
773
781
|
## `eas device:delete`
|
|
774
782
|
|
|
@@ -788,7 +796,7 @@ DESCRIPTION
|
|
|
788
796
|
remove a registered device from your account
|
|
789
797
|
```
|
|
790
798
|
|
|
791
|
-
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
799
|
+
_See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/device/delete.ts)_
|
|
792
800
|
|
|
793
801
|
## `eas device:list`
|
|
794
802
|
|
|
@@ -809,7 +817,7 @@ DESCRIPTION
|
|
|
809
817
|
list all registered devices for your account
|
|
810
818
|
```
|
|
811
819
|
|
|
812
|
-
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/
|
|
820
|
+
_See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/device/list.ts)_
|
|
813
821
|
|
|
814
822
|
## `eas device:rename`
|
|
815
823
|
|
|
@@ -830,7 +838,7 @@ DESCRIPTION
|
|
|
830
838
|
rename a registered device
|
|
831
839
|
```
|
|
832
840
|
|
|
833
|
-
_See code: [src/commands/device/rename.ts](https://github.com/expo/eas-cli/blob/
|
|
841
|
+
_See code: [src/commands/device/rename.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/device/rename.ts)_
|
|
834
842
|
|
|
835
843
|
## `eas device:view [UDID]`
|
|
836
844
|
|
|
@@ -844,7 +852,7 @@ DESCRIPTION
|
|
|
844
852
|
view a device for your project
|
|
845
853
|
```
|
|
846
854
|
|
|
847
|
-
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/
|
|
855
|
+
_See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/device/view.ts)_
|
|
848
856
|
|
|
849
857
|
## `eas diagnostics`
|
|
850
858
|
|
|
@@ -858,7 +866,7 @@ DESCRIPTION
|
|
|
858
866
|
display environment info
|
|
859
867
|
```
|
|
860
868
|
|
|
861
|
-
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/
|
|
869
|
+
_See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/diagnostics.ts)_
|
|
862
870
|
|
|
863
871
|
## `eas help [COMMAND]`
|
|
864
872
|
|
|
@@ -946,7 +954,7 @@ DESCRIPTION
|
|
|
946
954
|
validate the local store configuration
|
|
947
955
|
```
|
|
948
956
|
|
|
949
|
-
_See code: [src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/
|
|
957
|
+
_See code: [src/commands/metadata/lint.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/metadata/lint.ts)_
|
|
950
958
|
|
|
951
959
|
## `eas metadata:pull`
|
|
952
960
|
|
|
@@ -963,7 +971,7 @@ DESCRIPTION
|
|
|
963
971
|
generate the local store configuration from the app stores
|
|
964
972
|
```
|
|
965
973
|
|
|
966
|
-
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/
|
|
974
|
+
_See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/metadata/pull.ts)_
|
|
967
975
|
|
|
968
976
|
## `eas metadata:push`
|
|
969
977
|
|
|
@@ -980,7 +988,7 @@ DESCRIPTION
|
|
|
980
988
|
sync the local store configuration to the app stores
|
|
981
989
|
```
|
|
982
990
|
|
|
983
|
-
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/
|
|
991
|
+
_See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/metadata/push.ts)_
|
|
984
992
|
|
|
985
993
|
## `eas open`
|
|
986
994
|
|
|
@@ -994,7 +1002,7 @@ DESCRIPTION
|
|
|
994
1002
|
open the project page in a web browser
|
|
995
1003
|
```
|
|
996
1004
|
|
|
997
|
-
_See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/
|
|
1005
|
+
_See code: [src/commands/open.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/open.ts)_
|
|
998
1006
|
|
|
999
1007
|
## `eas project:info`
|
|
1000
1008
|
|
|
@@ -1008,7 +1016,7 @@ DESCRIPTION
|
|
|
1008
1016
|
information about the current project
|
|
1009
1017
|
```
|
|
1010
1018
|
|
|
1011
|
-
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/
|
|
1019
|
+
_See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/project/info.ts)_
|
|
1012
1020
|
|
|
1013
1021
|
## `eas project:init`
|
|
1014
1022
|
|
|
@@ -1030,7 +1038,7 @@ ALIASES
|
|
|
1030
1038
|
$ eas init
|
|
1031
1039
|
```
|
|
1032
1040
|
|
|
1033
|
-
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/
|
|
1041
|
+
_See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/project/init.ts)_
|
|
1034
1042
|
|
|
1035
1043
|
## `eas secret:create`
|
|
1036
1044
|
|
|
@@ -1053,7 +1061,7 @@ DESCRIPTION
|
|
|
1053
1061
|
create an environment secret on the current project or owner account
|
|
1054
1062
|
```
|
|
1055
1063
|
|
|
1056
|
-
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/
|
|
1064
|
+
_See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/secret/create.ts)_
|
|
1057
1065
|
|
|
1058
1066
|
## `eas secret:delete`
|
|
1059
1067
|
|
|
@@ -1071,7 +1079,7 @@ DESCRIPTION
|
|
|
1071
1079
|
delete an environment secret by ID
|
|
1072
1080
|
```
|
|
1073
1081
|
|
|
1074
|
-
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
1082
|
+
_See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/secret/delete.ts)_
|
|
1075
1083
|
|
|
1076
1084
|
## `eas secret:list`
|
|
1077
1085
|
|
|
@@ -1085,7 +1093,7 @@ DESCRIPTION
|
|
|
1085
1093
|
list environment secrets available for your current app
|
|
1086
1094
|
```
|
|
1087
1095
|
|
|
1088
|
-
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/
|
|
1096
|
+
_See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/secret/list.ts)_
|
|
1089
1097
|
|
|
1090
1098
|
## `eas secret:push`
|
|
1091
1099
|
|
|
@@ -1105,7 +1113,7 @@ DESCRIPTION
|
|
|
1105
1113
|
read environment secrets from env file and store on the server
|
|
1106
1114
|
```
|
|
1107
1115
|
|
|
1108
|
-
_See code: [src/commands/secret/push.ts](https://github.com/expo/eas-cli/blob/
|
|
1116
|
+
_See code: [src/commands/secret/push.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/secret/push.ts)_
|
|
1109
1117
|
|
|
1110
1118
|
## `eas submit`
|
|
1111
1119
|
|
|
@@ -1135,7 +1143,7 @@ ALIASES
|
|
|
1135
1143
|
$ eas build:submit
|
|
1136
1144
|
```
|
|
1137
1145
|
|
|
1138
|
-
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/
|
|
1146
|
+
_See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/submit.ts)_
|
|
1139
1147
|
|
|
1140
1148
|
## `eas update`
|
|
1141
1149
|
|
|
@@ -1168,7 +1176,7 @@ DESCRIPTION
|
|
|
1168
1176
|
publish an update group
|
|
1169
1177
|
```
|
|
1170
1178
|
|
|
1171
|
-
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/
|
|
1179
|
+
_See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/update/index.ts)_
|
|
1172
1180
|
|
|
1173
1181
|
## `eas update:configure`
|
|
1174
1182
|
|
|
@@ -1186,7 +1194,7 @@ DESCRIPTION
|
|
|
1186
1194
|
configure the project to support EAS Update
|
|
1187
1195
|
```
|
|
1188
1196
|
|
|
1189
|
-
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/
|
|
1197
|
+
_See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/update/configure.ts)_
|
|
1190
1198
|
|
|
1191
1199
|
## `eas update:delete GROUPID`
|
|
1192
1200
|
|
|
@@ -1207,7 +1215,7 @@ DESCRIPTION
|
|
|
1207
1215
|
delete all the updates in an update group
|
|
1208
1216
|
```
|
|
1209
1217
|
|
|
1210
|
-
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
1218
|
+
_See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/update/delete.ts)_
|
|
1211
1219
|
|
|
1212
1220
|
## `eas update:list`
|
|
1213
1221
|
|
|
@@ -1229,7 +1237,7 @@ DESCRIPTION
|
|
|
1229
1237
|
view the recent updates
|
|
1230
1238
|
```
|
|
1231
1239
|
|
|
1232
|
-
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/
|
|
1240
|
+
_See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/update/list.ts)_
|
|
1233
1241
|
|
|
1234
1242
|
## `eas update:republish`
|
|
1235
1243
|
|
|
@@ -1241,10 +1249,10 @@ USAGE
|
|
|
1241
1249
|
[--private-key-path <value>] [--json --non-interactive]
|
|
1242
1250
|
|
|
1243
1251
|
FLAGS
|
|
1244
|
-
-m, --message=<value> Short message describing the republished update
|
|
1252
|
+
-m, --message=<value> Short message describing the republished update group
|
|
1245
1253
|
-p, --platform=(android|ios|all) [default: all]
|
|
1246
|
-
--branch=<value> Branch name to select an update to republish from
|
|
1247
|
-
--channel=<value> Channel name to select an update to republish from
|
|
1254
|
+
--branch=<value> Branch name to select an update group to republish from
|
|
1255
|
+
--channel=<value> Channel name to select an update group to republish from
|
|
1248
1256
|
--group=<value> Update group ID to republish
|
|
1249
1257
|
--json Enable JSON output, non-JSON messages will be printed to stderr.
|
|
1250
1258
|
--non-interactive Run the command in non-interactive mode.
|
|
@@ -1256,7 +1264,7 @@ DESCRIPTION
|
|
|
1256
1264
|
roll back to an existing update
|
|
1257
1265
|
```
|
|
1258
1266
|
|
|
1259
|
-
_See code: [src/commands/update/republish.ts](https://github.com/expo/eas-cli/blob/
|
|
1267
|
+
_See code: [src/commands/update/republish.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/update/republish.ts)_
|
|
1260
1268
|
|
|
1261
1269
|
## `eas update:view GROUPID`
|
|
1262
1270
|
|
|
@@ -1276,7 +1284,7 @@ DESCRIPTION
|
|
|
1276
1284
|
update group details
|
|
1277
1285
|
```
|
|
1278
1286
|
|
|
1279
|
-
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/
|
|
1287
|
+
_See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/update/view.ts)_
|
|
1280
1288
|
|
|
1281
1289
|
## `eas webhook:create`
|
|
1282
1290
|
|
|
@@ -1297,7 +1305,7 @@ DESCRIPTION
|
|
|
1297
1305
|
create a webhook
|
|
1298
1306
|
```
|
|
1299
1307
|
|
|
1300
|
-
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/
|
|
1308
|
+
_See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/webhook/create.ts)_
|
|
1301
1309
|
|
|
1302
1310
|
## `eas webhook:delete [ID]`
|
|
1303
1311
|
|
|
@@ -1317,7 +1325,7 @@ DESCRIPTION
|
|
|
1317
1325
|
delete a webhook
|
|
1318
1326
|
```
|
|
1319
1327
|
|
|
1320
|
-
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/
|
|
1328
|
+
_See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/webhook/delete.ts)_
|
|
1321
1329
|
|
|
1322
1330
|
## `eas webhook:list`
|
|
1323
1331
|
|
|
@@ -1335,7 +1343,7 @@ DESCRIPTION
|
|
|
1335
1343
|
list webhooks
|
|
1336
1344
|
```
|
|
1337
1345
|
|
|
1338
|
-
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/
|
|
1346
|
+
_See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/webhook/list.ts)_
|
|
1339
1347
|
|
|
1340
1348
|
## `eas webhook:update`
|
|
1341
1349
|
|
|
@@ -1357,7 +1365,7 @@ DESCRIPTION
|
|
|
1357
1365
|
update a webhook
|
|
1358
1366
|
```
|
|
1359
1367
|
|
|
1360
|
-
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/
|
|
1368
|
+
_See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/webhook/update.ts)_
|
|
1361
1369
|
|
|
1362
1370
|
## `eas webhook:view ID`
|
|
1363
1371
|
|
|
@@ -1374,7 +1382,7 @@ DESCRIPTION
|
|
|
1374
1382
|
view a webhook
|
|
1375
1383
|
```
|
|
1376
1384
|
|
|
1377
|
-
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/
|
|
1385
|
+
_See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v4.0.1/packages/eas-cli/src/commands/webhook/view.ts)_
|
|
1378
1386
|
|
|
1379
1387
|
## `eas whoami`
|
|
1380
1388
|
|
|
@@ -24,9 +24,15 @@ export type AlwaysTrueBranchMapping = {
|
|
|
24
24
|
}
|
|
25
25
|
];
|
|
26
26
|
};
|
|
27
|
+
export type EmptyBranchMapping = {
|
|
28
|
+
version: number;
|
|
29
|
+
data: [];
|
|
30
|
+
};
|
|
27
31
|
export declare function getAlwaysTrueBranchMapping(branchId: string): AlwaysTrueBranchMapping;
|
|
32
|
+
export declare function hasEmptyBranchMap(channelInfo: UpdateChannelBasicInfoFragment): boolean;
|
|
28
33
|
export declare function hasStandardBranchMap(channelInfo: UpdateChannelBasicInfoFragment): boolean;
|
|
29
34
|
export declare function getStandardBranchId(channelInfo: UpdateChannelBasicInfoFragment): string;
|
|
35
|
+
export declare function isEmptyBranchMapping(branchMapping: BranchMapping): branchMapping is EmptyBranchMapping;
|
|
30
36
|
export declare function isAlwaysTrueBranchMapping(branchMapping: BranchMapping): branchMapping is AlwaysTrueBranchMapping;
|
|
31
37
|
export declare function getBranchIds(branchMapping: BranchMapping): string[];
|
|
32
38
|
export declare function getBranchMapping(branchMappingString: string): BranchMapping;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BranchMappingValidationError = exports.assertString = exports.assertNumber = exports.assertNodeObject = exports.assertStatement = exports.assertVersion = exports.hashLtOperator = exports.equalsOperator = exports.alwaysTrue = exports.isAlwaysTrue = exports.andStatement = exports.isNodeObject = exports.isStatement = exports.isAndStatement = exports.getNodesFromStatement = exports.getBranchMapping = exports.getBranchIds = exports.isAlwaysTrueBranchMapping = exports.getStandardBranchId = exports.hasStandardBranchMap = exports.getAlwaysTrueBranchMapping = void 0;
|
|
3
|
+
exports.BranchMappingValidationError = exports.assertString = exports.assertNumber = exports.assertNodeObject = exports.assertStatement = exports.assertVersion = exports.hashLtOperator = exports.equalsOperator = exports.alwaysTrue = exports.isAlwaysTrue = exports.andStatement = exports.isNodeObject = exports.isStatement = exports.isAndStatement = exports.getNodesFromStatement = exports.getBranchMapping = exports.getBranchIds = exports.isAlwaysTrueBranchMapping = exports.isEmptyBranchMapping = exports.getStandardBranchId = exports.hasStandardBranchMap = exports.hasEmptyBranchMap = exports.getAlwaysTrueBranchMapping = void 0;
|
|
4
4
|
function getAlwaysTrueBranchMapping(branchId) {
|
|
5
5
|
return {
|
|
6
6
|
version: 0,
|
|
@@ -13,6 +13,11 @@ function getAlwaysTrueBranchMapping(branchId) {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
exports.getAlwaysTrueBranchMapping = getAlwaysTrueBranchMapping;
|
|
16
|
+
function hasEmptyBranchMap(channelInfo) {
|
|
17
|
+
const branchMapping = getBranchMapping(channelInfo.branchMapping);
|
|
18
|
+
return isEmptyBranchMapping(branchMapping);
|
|
19
|
+
}
|
|
20
|
+
exports.hasEmptyBranchMap = hasEmptyBranchMap;
|
|
16
21
|
function hasStandardBranchMap(channelInfo) {
|
|
17
22
|
const branchMapping = getBranchMapping(channelInfo.branchMapping);
|
|
18
23
|
return isAlwaysTrueBranchMapping(branchMapping);
|
|
@@ -24,6 +29,10 @@ function getStandardBranchId(channelInfo) {
|
|
|
24
29
|
return getBranchIdFromStandardMapping(branchMapping);
|
|
25
30
|
}
|
|
26
31
|
exports.getStandardBranchId = getStandardBranchId;
|
|
32
|
+
function isEmptyBranchMapping(branchMapping) {
|
|
33
|
+
return branchMapping.data.length === 0;
|
|
34
|
+
}
|
|
35
|
+
exports.isEmptyBranchMapping = isEmptyBranchMapping;
|
|
27
36
|
function isAlwaysTrueBranchMapping(branchMapping) {
|
|
28
37
|
const numBranches = branchMapping.data.length;
|
|
29
38
|
if (numBranches !== 1) {
|
|
@@ -10,7 +10,7 @@ const utils_1 = require("../update/utils");
|
|
|
10
10
|
const branch_mapping_2 = require("./branch-mapping");
|
|
11
11
|
function logChannelDetails(channel) {
|
|
12
12
|
(0, branch_mapping_2.assertVersion)(channel, 0);
|
|
13
|
-
(0, assert_1.default)((0, branch_mapping_2.hasStandardBranchMap)(channel) || (0, branch_mapping_1.isRollout)(channel), 'Only standard branch mappings and rollouts are supported.');
|
|
13
|
+
(0, assert_1.default)((0, branch_mapping_2.hasEmptyBranchMap)(channel) || (0, branch_mapping_2.hasStandardBranchMap)(channel) || (0, branch_mapping_1.isRollout)(channel), 'Only standard branch mappings and rollouts are supported.');
|
|
14
14
|
const branchDescription = channel.updateBranches.flatMap(branch => {
|
|
15
15
|
const updateGroupWithBranchDescriptions = (0, utils_1.getUpdateGroupDescriptionsWithBranch)(branch.updateGroups);
|
|
16
16
|
const maybeRollout = (0, branch_mapping_1.isRollout)(channel) ? (0, branch_mapping_1.getRollout)(channel) : null;
|
package/build/channel/utils.d.ts
CHANGED
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
import { UpdateBranchObject, UpdateChannelObject } from '../graphql/queries/ChannelQuery';
|
|
2
|
-
import { BranchMapping } from './branch-mapping';
|
|
3
|
-
/**
|
|
4
|
-
* Get the branch mapping and determine whether it is a rollout.
|
|
5
|
-
* Ensure that the branch mapping is properly formatted.
|
|
6
|
-
*/
|
|
7
|
-
export declare function getBranchMapping(branchMappingString?: string): {
|
|
8
|
-
branchMapping: BranchMapping;
|
|
9
|
-
isRollout: boolean;
|
|
10
|
-
rolloutPercent?: number;
|
|
11
|
-
};
|
|
12
2
|
export declare function getUpdateBranch(channel: UpdateChannelObject, branchId: string): UpdateBranchObject;
|