eas-cli 3.18.2 → 4.0.0
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 +76 -65
- package/build/channel/branch-mapping.d.ts +1 -0
- package/build/channel/branch-mapping.js +11 -1
- package/build/channel/print-utils.d.ts +2 -0
- package/build/channel/print-utils.js +39 -0
- package/build/channel/queries.js +3 -3
- package/build/channel/utils.d.ts +0 -11
- package/build/channel/utils.js +1 -93
- package/build/commands/channel/edit.js +6 -1
- package/build/commands/channel/rollout.d.ts +14 -2
- package/build/commands/channel/rollout.js +106 -270
- package/build/commands/update/republish.d.ts +2 -21
- package/build/commands/update/republish.js +15 -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 +79 -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.d.ts +3 -1
- package/build/update/republish.js +38 -15
- 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 -109
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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/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.0/packages/eas-cli/src/commands/update/list.ts)_
|
|
1233
1241
|
|
|
1234
1242
|
## `eas update:republish`
|
|
1235
1243
|
|
|
@@ -1238,22 +1246,25 @@ roll back to an existing update
|
|
|
1238
1246
|
```
|
|
1239
1247
|
USAGE
|
|
1240
1248
|
$ eas update:republish [--channel <value> | --branch <value> | --group <value>] [-m <value>] [-p android|ios|all]
|
|
1241
|
-
[--json --non-interactive]
|
|
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.
|
|
1259
|
+
--private-key-path=<value> File containing the PEM-encoded private key corresponding to the certificate in
|
|
1260
|
+
expo-updates' configuration. Defaults to a file named "private-key.pem" in the
|
|
1261
|
+
certificate's directory.
|
|
1251
1262
|
|
|
1252
1263
|
DESCRIPTION
|
|
1253
1264
|
roll back to an existing update
|
|
1254
1265
|
```
|
|
1255
1266
|
|
|
1256
|
-
_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.0/packages/eas-cli/src/commands/update/republish.ts)_
|
|
1257
1268
|
|
|
1258
1269
|
## `eas update:view GROUPID`
|
|
1259
1270
|
|
|
@@ -1273,7 +1284,7 @@ DESCRIPTION
|
|
|
1273
1284
|
update group details
|
|
1274
1285
|
```
|
|
1275
1286
|
|
|
1276
|
-
_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.0/packages/eas-cli/src/commands/update/view.ts)_
|
|
1277
1288
|
|
|
1278
1289
|
## `eas webhook:create`
|
|
1279
1290
|
|
|
@@ -1294,7 +1305,7 @@ DESCRIPTION
|
|
|
1294
1305
|
create a webhook
|
|
1295
1306
|
```
|
|
1296
1307
|
|
|
1297
|
-
_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.0/packages/eas-cli/src/commands/webhook/create.ts)_
|
|
1298
1309
|
|
|
1299
1310
|
## `eas webhook:delete [ID]`
|
|
1300
1311
|
|
|
@@ -1314,7 +1325,7 @@ DESCRIPTION
|
|
|
1314
1325
|
delete a webhook
|
|
1315
1326
|
```
|
|
1316
1327
|
|
|
1317
|
-
_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.0/packages/eas-cli/src/commands/webhook/delete.ts)_
|
|
1318
1329
|
|
|
1319
1330
|
## `eas webhook:list`
|
|
1320
1331
|
|
|
@@ -1332,7 +1343,7 @@ DESCRIPTION
|
|
|
1332
1343
|
list webhooks
|
|
1333
1344
|
```
|
|
1334
1345
|
|
|
1335
|
-
_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.0/packages/eas-cli/src/commands/webhook/list.ts)_
|
|
1336
1347
|
|
|
1337
1348
|
## `eas webhook:update`
|
|
1338
1349
|
|
|
@@ -1354,7 +1365,7 @@ DESCRIPTION
|
|
|
1354
1365
|
update a webhook
|
|
1355
1366
|
```
|
|
1356
1367
|
|
|
1357
|
-
_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.0/packages/eas-cli/src/commands/webhook/update.ts)_
|
|
1358
1369
|
|
|
1359
1370
|
## `eas webhook:view ID`
|
|
1360
1371
|
|
|
@@ -1371,7 +1382,7 @@ DESCRIPTION
|
|
|
1371
1382
|
view a webhook
|
|
1372
1383
|
```
|
|
1373
1384
|
|
|
1374
|
-
_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.0/packages/eas-cli/src/commands/webhook/view.ts)_
|
|
1375
1386
|
|
|
1376
1387
|
## `eas whoami`
|
|
1377
1388
|
|
|
@@ -39,6 +39,7 @@ export declare function isAlwaysTrue(node: BranchMappingNode): boolean;
|
|
|
39
39
|
export declare function alwaysTrue(): BranchMappingAlwaysTrue;
|
|
40
40
|
export declare function equalsOperator(): BranchMappingOperator;
|
|
41
41
|
export declare function hashLtOperator(): BranchMappingOperator;
|
|
42
|
+
export declare function assertVersion(channelInfo: UpdateChannelBasicInfoFragment, version: number): void;
|
|
42
43
|
export declare function assertStatement(node: BranchMappingNode): asserts node is BranchMappingStatement;
|
|
43
44
|
export declare function assertNodeObject(node: BranchMappingNode): asserts node is BranchMappingObject;
|
|
44
45
|
export declare function assertNumber(operand: string | number | string[]): asserts operand is number;
|
|
@@ -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.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.getStandardBranchId = exports.hasStandardBranchMap = exports.getAlwaysTrueBranchMapping = void 0;
|
|
4
4
|
function getAlwaysTrueBranchMapping(branchId) {
|
|
5
5
|
return {
|
|
6
6
|
version: 0,
|
|
@@ -85,6 +85,16 @@ function hashLtOperator() {
|
|
|
85
85
|
return 'hash_lt';
|
|
86
86
|
}
|
|
87
87
|
exports.hashLtOperator = hashLtOperator;
|
|
88
|
+
function isVersion(branchMapping, version) {
|
|
89
|
+
return branchMapping.version === version;
|
|
90
|
+
}
|
|
91
|
+
function assertVersion(channelInfo, version) {
|
|
92
|
+
const branchMapping = getBranchMapping(channelInfo.branchMapping);
|
|
93
|
+
if (!isVersion(branchMapping, version)) {
|
|
94
|
+
throw new BranchMappingValidationError(`Expected branch mapping version ${version}. Received: ${JSON.stringify(branchMapping)}`);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.assertVersion = assertVersion;
|
|
88
98
|
function assertStatement(node) {
|
|
89
99
|
if (!isStatement(node)) {
|
|
90
100
|
throw new BranchMappingValidationError('Branch mapping node must be a statement. Received: ' + JSON.stringify(node));
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logChannelDetails = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const assert_1 = tslib_1.__importDefault(require("assert"));
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
+
const log_1 = tslib_1.__importDefault(require("../log"));
|
|
8
|
+
const branch_mapping_1 = require("../rollout/branch-mapping");
|
|
9
|
+
const utils_1 = require("../update/utils");
|
|
10
|
+
const branch_mapping_2 = require("./branch-mapping");
|
|
11
|
+
function logChannelDetails(channel) {
|
|
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.');
|
|
14
|
+
const branchDescription = channel.updateBranches.flatMap(branch => {
|
|
15
|
+
const updateGroupWithBranchDescriptions = (0, utils_1.getUpdateGroupDescriptionsWithBranch)(branch.updateGroups);
|
|
16
|
+
const maybeRollout = (0, branch_mapping_1.isRollout)(channel) ? (0, branch_mapping_1.getRollout)(channel) : null;
|
|
17
|
+
let maybePercentOnBranch = undefined;
|
|
18
|
+
if (maybeRollout) {
|
|
19
|
+
maybePercentOnBranch =
|
|
20
|
+
maybeRollout.rolledOutBranchId === branch.id
|
|
21
|
+
? maybeRollout.percentRolledOut
|
|
22
|
+
: 100 - maybeRollout.percentRolledOut;
|
|
23
|
+
}
|
|
24
|
+
return updateGroupWithBranchDescriptions.map(({ branch, ...updateGroup }) => ({
|
|
25
|
+
branch,
|
|
26
|
+
branchRolloutPercentage: maybePercentOnBranch,
|
|
27
|
+
update: updateGroup,
|
|
28
|
+
}));
|
|
29
|
+
});
|
|
30
|
+
if (branchDescription.length === 0) {
|
|
31
|
+
log_1.default.log(chalk_1.default.dim('No branches are pointed to this channel.'));
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
log_1.default.log(branchDescription
|
|
35
|
+
.map(description => (0, utils_1.formatBranch)(description))
|
|
36
|
+
.join(`\n\n${chalk_1.default.dim('———')}\n\n`));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.logChannelDetails = logChannelDetails;
|
package/build/channel/queries.js
CHANGED
|
@@ -13,7 +13,7 @@ const log_1 = tslib_1.__importDefault(require("../log"));
|
|
|
13
13
|
const formatFields_1 = tslib_1.__importDefault(require("../utils/formatFields"));
|
|
14
14
|
const json_1 = require("../utils/json");
|
|
15
15
|
const queries_1 = require("../utils/queries");
|
|
16
|
-
const
|
|
16
|
+
const print_utils_1 = require("./print-utils");
|
|
17
17
|
exports.CHANNELS_LIMIT = 25;
|
|
18
18
|
async function selectChannelOnAppAsync(graphqlClient, { projectId, selectionPromptTitle, paginatedQueryOptions, }) {
|
|
19
19
|
var _a;
|
|
@@ -108,7 +108,7 @@ function renderPageOfChannels(currentPage, { json }) {
|
|
|
108
108
|
for (const channel of currentPage) {
|
|
109
109
|
renderChannelHeaderContent({ channelName: channel.name, channelId: channel.id });
|
|
110
110
|
log_1.default.addNewLineIfNone();
|
|
111
|
-
(0,
|
|
111
|
+
(0, print_utils_1.logChannelDetails)(channel);
|
|
112
112
|
if (currentPage.indexOf(channel) < currentPage.length - 1) {
|
|
113
113
|
log_1.default.log(`\n${chalk_1.default.dim('———')}\n`);
|
|
114
114
|
}
|
|
@@ -123,7 +123,7 @@ function renderPageOfBranchesOnChannel(channel, currentPage, { json }) {
|
|
|
123
123
|
else {
|
|
124
124
|
// The channel details contain both the branch and latest update group
|
|
125
125
|
log_1.default.addNewLineIfNone();
|
|
126
|
-
(0,
|
|
126
|
+
(0, print_utils_1.logChannelDetails)(channelWithNewBranches);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
function renderChannelHeaderContent({ channelName, channelId, }) {
|