eas-cli 3.18.3 → 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.
Files changed (44) hide show
  1. package/README.md +72 -64
  2. package/build/channel/utils.d.ts +0 -10
  3. package/build/channel/utils.js +1 -60
  4. package/build/commands/channel/rollout.d.ts +14 -2
  5. package/build/commands/channel/rollout.js +106 -270
  6. package/build/commands/update/republish.js +6 -6
  7. package/build/devices/actions/create/action.d.ts +2 -1
  8. package/build/devices/actions/create/action.js +10 -1
  9. package/build/devices/actions/create/currentMachineMethod.d.ts +3 -0
  10. package/build/devices/actions/create/currentMachineMethod.js +100 -0
  11. package/build/devices/actions/create/developerPortalMethod.js +2 -1
  12. package/build/devices/actions/create/inputMethod.d.ts +0 -1
  13. package/build/devices/actions/create/inputMethod.js +6 -64
  14. package/build/devices/actions/create/utils.d.ts +10 -0
  15. package/build/devices/actions/create/utils.js +73 -0
  16. package/build/devices/manager.js +3 -3
  17. package/build/devices/utils/errors.d.ts +3 -0
  18. package/build/devices/utils/errors.js +7 -1
  19. package/build/devices/utils/formatDevice.js +1 -0
  20. package/build/graphql/generated.d.ts +5 -4
  21. package/build/graphql/generated.js +1 -0
  22. package/build/graphql/types/credentials/AppleDevice.js +1 -0
  23. package/build/rollout/actions/CreateRollout.d.ts +2 -0
  24. package/build/rollout/actions/CreateRollout.js +79 -5
  25. package/build/rollout/actions/EditRollout.js +5 -2
  26. package/build/rollout/actions/EndRollout.d.ts +6 -3
  27. package/build/rollout/actions/EndRollout.js +22 -21
  28. package/build/rollout/actions/ManageRollout.d.ts +3 -3
  29. package/build/rollout/actions/ManageRollout.js +1 -1
  30. package/build/rollout/actions/NonInteractiveRollout.d.ts +6 -4
  31. package/build/rollout/actions/NonInteractiveRollout.js +1 -1
  32. package/build/rollout/actions/RolloutMainMenu.d.ts +4 -4
  33. package/build/rollout/actions/RolloutMainMenu.js +14 -5
  34. package/build/rollout/actions/SelectRuntime.d.ts +4 -7
  35. package/build/rollout/actions/SelectRuntime.js +22 -39
  36. package/build/rollout/branch-mapping.js +2 -2
  37. package/build/rollout/utils.d.ts +1 -1
  38. package/build/rollout/utils.js +5 -5
  39. package/build/update/republish.js +6 -6
  40. package/build/utils/relay.js +3 -9
  41. package/oclif.manifest.json +1 -1
  42. package/package.json +3 -3
  43. package/build/commands/channel/rollout-preview.d.ts +0 -32
  44. 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/v3.18.3/packages/eas-cli/src/commands/account/login.ts)_
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/v3.18.3/packages/eas-cli/src/commands/account/logout.ts)_
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/v3.18.3/packages/eas-cli/src/commands/account/view.ts)_
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/v3.18.3/packages/eas-cli/src/commands/analytics.ts)_
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/v3.18.3/packages/eas-cli/src/commands/branch/create.ts)_
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/v3.18.3/packages/eas-cli/src/commands/branch/delete.ts)_
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/v3.18.3/packages/eas-cli/src/commands/branch/list.ts)_
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/v3.18.3/packages/eas-cli/src/commands/branch/rename.ts)_
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/v3.18.3/packages/eas-cli/src/commands/branch/view.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/index.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/cancel.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/configure.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/inspect.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/list.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/resign.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/run.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/version/get.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/version/set.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/version/sync.ts)_
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/v3.18.3/packages/eas-cli/src/commands/build/view.ts)_
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/v3.18.3/packages/eas-cli/src/commands/channel/create.ts)_
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/v3.18.3/packages/eas-cli/src/commands/channel/edit.ts)_
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/v3.18.3/packages/eas-cli/src/commands/channel/list.ts)_
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] [--branch <value>] [--percent <value>] [--end] [--json --non-interactive]
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
- --branch=<value> branch to rollout
687
- --end end the rollout
688
- --json Enable JSON output, non-JSON messages will be printed to stderr.
689
- --non-interactive Run the command in non-interactive mode.
690
- --percent=<value> percent of users to send to the new branch
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/v3.18.3/packages/eas-cli/src/commands/channel/rollout.ts)_
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/v3.18.3/packages/eas-cli/src/commands/channel/view.ts)_
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/v3.18.3/packages/eas-cli/src/commands/config.ts)_
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/v3.18.3/packages/eas-cli/src/commands/credentials.ts)_
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/v3.18.3/packages/eas-cli/src/commands/device/create.ts)_
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/v3.18.3/packages/eas-cli/src/commands/device/delete.ts)_
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/v3.18.3/packages/eas-cli/src/commands/device/list.ts)_
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/v3.18.3/packages/eas-cli/src/commands/device/rename.ts)_
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/v3.18.3/packages/eas-cli/src/commands/device/view.ts)_
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/v3.18.3/packages/eas-cli/src/commands/diagnostics.ts)_
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/v3.18.3/packages/eas-cli/src/commands/metadata/lint.ts)_
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/v3.18.3/packages/eas-cli/src/commands/metadata/pull.ts)_
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/v3.18.3/packages/eas-cli/src/commands/metadata/push.ts)_
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/v3.18.3/packages/eas-cli/src/commands/open.ts)_
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/v3.18.3/packages/eas-cli/src/commands/project/info.ts)_
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/v3.18.3/packages/eas-cli/src/commands/project/init.ts)_
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/v3.18.3/packages/eas-cli/src/commands/secret/create.ts)_
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/v3.18.3/packages/eas-cli/src/commands/secret/delete.ts)_
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/v3.18.3/packages/eas-cli/src/commands/secret/list.ts)_
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/v3.18.3/packages/eas-cli/src/commands/secret/push.ts)_
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/v3.18.3/packages/eas-cli/src/commands/submit.ts)_
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/v3.18.3/packages/eas-cli/src/commands/update/index.ts)_
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/v3.18.3/packages/eas-cli/src/commands/update/configure.ts)_
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/v3.18.3/packages/eas-cli/src/commands/update/delete.ts)_
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/v3.18.3/packages/eas-cli/src/commands/update/list.ts)_
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
 
@@ -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/v3.18.3/packages/eas-cli/src/commands/update/republish.ts)_
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)_
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/v3.18.3/packages/eas-cli/src/commands/update/view.ts)_
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)_
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/v3.18.3/packages/eas-cli/src/commands/webhook/create.ts)_
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)_
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/v3.18.3/packages/eas-cli/src/commands/webhook/delete.ts)_
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)_
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/v3.18.3/packages/eas-cli/src/commands/webhook/list.ts)_
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)_
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/v3.18.3/packages/eas-cli/src/commands/webhook/update.ts)_
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)_
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/v3.18.3/packages/eas-cli/src/commands/webhook/view.ts)_
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)_
1378
1386
 
1379
1387
  ## `eas whoami`
1380
1388
 
@@ -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;
@@ -1,65 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getUpdateBranch = exports.getBranchMapping = void 0;
4
- const tslib_1 = require("tslib");
5
- const assert_1 = tslib_1.__importDefault(require("assert"));
6
- const branch_mapping_1 = require("./branch-mapping");
7
- /**
8
- * Get the branch mapping and determine whether it is a rollout.
9
- * Ensure that the branch mapping is properly formatted.
10
- */
11
- function getBranchMapping(branchMappingString) {
12
- var _a;
13
- if (!branchMappingString) {
14
- throw new Error('Missing branch mapping.');
15
- }
16
- let branchMapping;
17
- try {
18
- branchMapping = JSON.parse(branchMappingString);
19
- }
20
- catch {
21
- throw new Error(`Could not parse branchMapping string into a JSON: "${branchMappingString}"`);
22
- }
23
- (0, assert_1.default)(branchMapping, 'Branch Mapping must be defined.');
24
- if (branchMapping.version !== 0) {
25
- throw new Error('Branch mapping must be version 0.');
26
- }
27
- const isRollout = branchMapping.data.length === 2;
28
- const branchMappingNode = (_a = branchMapping.data[0]) === null || _a === void 0 ? void 0 : _a.branchMappingLogic;
29
- let rolloutPercent;
30
- if ((0, branch_mapping_1.isNodeObject)(branchMappingNode)) {
31
- (0, branch_mapping_1.assertNumber)(branchMappingNode.operand);
32
- rolloutPercent = branchMappingNode.operand;
33
- }
34
- switch (branchMapping.data.length) {
35
- case 0:
36
- break;
37
- case 1:
38
- if (branchMapping.data[0].branchMappingLogic !== 'true') {
39
- throw new Error('Branch mapping logic for a single branch must be "true"');
40
- }
41
- break;
42
- case 2:
43
- (0, branch_mapping_1.assertNodeObject)(branchMappingNode);
44
- if (branchMappingNode.clientKey !== 'rolloutToken') {
45
- throw new Error('Client key of initial branch mapping must be "rolloutToken"');
46
- }
47
- if (branchMappingNode.branchMappingOperator !== 'hash_lt') {
48
- throw new Error('Branch mapping operator of initial branch mapping must be "hash_lt"');
49
- }
50
- if (rolloutPercent == null) {
51
- throw new Error('Branch mapping is missing a "rolloutPercent"');
52
- }
53
- if (branchMapping.data[1].branchMappingLogic !== 'true') {
54
- throw new Error('Branch mapping logic for a the second branch of a rollout must be "true"');
55
- }
56
- break;
57
- default:
58
- throw new Error('Branch mapping data must have length less than or equal to 2.');
59
- }
60
- return { branchMapping, isRollout, rolloutPercent };
61
- }
62
- exports.getBranchMapping = getBranchMapping;
3
+ exports.getUpdateBranch = void 0;
63
4
  function getUpdateBranchNullable(channel, branchId) {
64
5
  const updateBranches = channel.updateBranches;
65
6
  const updateBranch = updateBranches.find(branch => branch.id === branchId);
@@ -1,4 +1,10 @@
1
1
  import EasCommand from '../../commandUtils/EasCommand';
2
+ import { EndOutcome } from '../../rollout/actions/EndRollout';
3
+ declare enum ActionRawFlagValue {
4
+ CREATE = "create",
5
+ EDIT = "edit",
6
+ END = "end"
7
+ }
2
8
  export default class ChannelRollout extends EasCommand {
3
9
  static description: string;
4
10
  static args: {
@@ -8,13 +14,19 @@ export default class ChannelRollout extends EasCommand {
8
14
  static flags: {
9
15
  json: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
16
  'non-interactive': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
11
- branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
17
+ action: import("@oclif/core/lib/interfaces").OptionFlag<ActionRawFlagValue | undefined>;
12
18
  percent: import("@oclif/core/lib/interfaces").OptionFlag<number | undefined>;
13
- end: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
19
+ outcome: import("@oclif/core/lib/interfaces").OptionFlag<EndOutcome | undefined>;
20
+ branch: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
21
+ 'runtime-version': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
22
+ 'private-key-path': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined>;
14
23
  };
15
24
  static contextDefinition: {
16
25
  loggedIn: import("../../commandUtils/context/LoggedInContextField").default;
17
26
  privateProjectConfig: import("../../commandUtils/context/PrivateProjectConfigContextField").PrivateProjectConfigContextField;
18
27
  };
19
28
  runAsync(): Promise<void>;
29
+ private getAction;
30
+ private sanitizeArgsAndFlags;
20
31
  }
32
+ export {};