eas-cli 1.0.0 → 1.2.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 (84) hide show
  1. package/README.md +72 -47
  2. package/build/analytics/events.d.ts +4 -1
  3. package/build/analytics/events.js +3 -0
  4. package/build/build/android/build.js +1 -1
  5. package/build/build/build.js +4 -4
  6. package/build/build/createContext.js +1 -0
  7. package/build/build/ios/graphql.js +0 -1
  8. package/build/build/utils/printBuildInfo.js +2 -2
  9. package/build/build/utils/repository.js +4 -4
  10. package/build/commandUtils/EasCommand.d.ts +2 -0
  11. package/build/commandUtils/EasCommand.js +44 -3
  12. package/build/commands/branch/create.js +1 -1
  13. package/build/commands/branch/delete.js +1 -1
  14. package/build/commands/branch/rename.js +2 -2
  15. package/build/commands/build/index.d.ts +2 -1
  16. package/build/commands/build/index.js +36 -18
  17. package/build/commands/channel/create.js +1 -1
  18. package/build/commands/channel/delete.js +1 -1
  19. package/build/commands/channel/edit.js +3 -3
  20. package/build/commands/channel/rollout.js +3 -3
  21. package/build/commands/channel/view.js +1 -1
  22. package/build/commands/credentials.d.ts +3 -0
  23. package/build/commands/credentials.js +6 -1
  24. package/build/commands/project/init.js +3 -1
  25. package/build/commands/secret/list.js +1 -1
  26. package/build/commands/submit.d.ts +2 -1
  27. package/build/commands/submit.js +28 -14
  28. package/build/commands/update/index.js +7 -4
  29. package/build/commands/update/list.js +1 -1
  30. package/build/credentials/android/actions/RemoveKeystore.js +1 -1
  31. package/build/credentials/android/api/GraphqlClient.js +1 -1
  32. package/build/credentials/context.d.ts +3 -0
  33. package/build/credentials/context.js +1 -0
  34. package/build/credentials/errors.js +1 -1
  35. package/build/credentials/ios/IosCredentialsProvider.d.ts +1 -0
  36. package/build/credentials/ios/IosCredentialsProvider.js +33 -5
  37. package/build/credentials/ios/actions/DistributionCertificateUtils.js +2 -2
  38. package/build/credentials/ios/actions/SetUpAdhocProvisioningProfile.js +1 -1
  39. package/build/credentials/ios/actions/SetUpInternalProvisioningProfile.js +2 -2
  40. package/build/credentials/ios/actions/SetUpProvisioningProfile.js +1 -1
  41. package/build/credentials/ios/actions/SetUpSubmissionCredentials.js +1 -1
  42. package/build/credentials/ios/api/GraphqlClient.js +1 -1
  43. package/build/credentials/ios/appstore/ascApiKey.d.ts +11 -0
  44. package/build/credentials/ios/appstore/ascApiKey.js +53 -3
  45. package/build/credentials/ios/appstore/bundleIdCapabilities.js +176 -15
  46. package/build/credentials/ios/appstore/contractMessages.js +1 -1
  47. package/build/credentials/ios/appstore/ensureAppExists.js +3 -3
  48. package/build/credentials/ios/appstore/pushKey.js +2 -2
  49. package/build/credentials/manager/ManageAndroid.js +2 -8
  50. package/build/credentials/manager/ManageIos.js +2 -4
  51. package/build/credentials/manager/SelectIosDistributionTypeGraphqlFromBuildProfile.js +1 -1
  52. package/build/credentials/manager/SelectPlatform.d.ts +2 -0
  53. package/build/credentials/manager/SelectPlatform.js +7 -12
  54. package/build/credentials/utils/promptForCredentials.js +1 -1
  55. package/build/devices/manager.js +1 -1
  56. package/build/graphql/client.js +1 -1
  57. package/build/graphql/generated.d.ts +191 -39
  58. package/build/graphql/generated.js +39 -1
  59. package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.d.ts +1 -1
  60. package/build/{credentials/ios/api/graphql → graphql}/queries/AppQuery.js +2 -2
  61. package/build/graphql/queries/EnvironmentSecretsQuery.d.ts +1 -1
  62. package/build/graphql/queries/EnvironmentSecretsQuery.js +2 -2
  63. package/build/graphql/queries/StatuspageServiceQuery.d.ts +4 -0
  64. package/build/graphql/queries/StatuspageServiceQuery.js +28 -0
  65. package/build/graphql/types/StatuspageService.d.ts +1 -0
  66. package/build/graphql/types/StatuspageService.js +19 -0
  67. package/build/metadata/errors.js +2 -2
  68. package/build/project/ensureProjectExists.d.ts +0 -7
  69. package/build/project/ensureProjectExists.js +4 -14
  70. package/build/project/metroConfig.js +1 -1
  71. package/build/project/projectUtils.d.ts +16 -3
  72. package/build/project/projectUtils.js +47 -50
  73. package/build/submit/android/AndroidSubmitter.js +1 -1
  74. package/build/submit/submit.js +2 -2
  75. package/build/submit/utils/errors.js +11 -9
  76. package/build/update/utils.js +1 -1
  77. package/build/utils/statuspageService.d.ts +2 -0
  78. package/build/utils/statuspageService.js +41 -0
  79. package/build/vcs/local.d.ts +1 -0
  80. package/build/vcs/local.js +11 -2
  81. package/oclif.manifest.json +1 -1
  82. package/package.json +4 -7
  83. package/build/graphql/queries/ProjectQuery.d.ts +0 -6
  84. package/build/graphql/queries/ProjectQuery.js +0 -24
package/README.md CHANGED
@@ -19,6 +19,28 @@ npm install -g eas-cli
19
19
  yarn global add eas-cli
20
20
  ```
21
21
 
22
+ ## Enforcing eas-cli version for your project
23
+
24
+ If you want to enforce the `eas-cli` version for your project, use the `"cli.version"` field in **eas.json**. Installing `eas-cli` to your project dependencies is strongly discouraged because it may cause dependency conflicts that are difficult to debug.
25
+
26
+ An example of **eas.json** that enforces `eas-cli` in version `1.0.0` or newer:
27
+
28
+ ```json
29
+ {
30
+ "cli": {
31
+ "version": ">=1.0.0"
32
+ },
33
+ "build": {
34
+ // build profiles
35
+ }
36
+ "submit": {
37
+ // submit profiles
38
+ }
39
+ }
40
+ ```
41
+
42
+ Learn more: https://docs.expo.dev/build-reference/eas-json/
43
+
22
44
  # Usage
23
45
 
24
46
  ```sh
@@ -102,7 +124,7 @@ ALIASES
102
124
  $ eas login
103
125
  ```
104
126
 
105
- _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/account/login.ts)_
127
+ _See code: [src/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/account/login.ts)_
106
128
 
107
129
  ## `eas account:logout`
108
130
 
@@ -119,7 +141,7 @@ ALIASES
119
141
  $ eas logout
120
142
  ```
121
143
 
122
- _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/account/logout.ts)_
144
+ _See code: [src/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/account/logout.ts)_
123
145
 
124
146
  ## `eas account:view`
125
147
 
@@ -136,7 +158,7 @@ ALIASES
136
158
  $ eas whoami
137
159
  ```
138
160
 
139
- _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/account/view.ts)_
161
+ _See code: [src/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/account/view.ts)_
140
162
 
141
163
  ## `eas analytics [STATUS]`
142
164
 
@@ -150,7 +172,7 @@ DESCRIPTION
150
172
  display or change analytics settings
151
173
  ```
152
174
 
153
- _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/analytics.ts)_
175
+ _See code: [src/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/analytics.ts)_
154
176
 
155
177
  ## `eas autocomplete [SHELL]`
156
178
 
@@ -199,7 +221,7 @@ DESCRIPTION
199
221
  create a branch
200
222
  ```
201
223
 
202
- _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/branch/create.ts)_
224
+ _See code: [src/commands/branch/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/create.ts)_
203
225
 
204
226
  ## `eas branch:delete [NAME]`
205
227
 
@@ -219,7 +241,7 @@ DESCRIPTION
219
241
  delete a branch
220
242
  ```
221
243
 
222
- _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/branch/delete.ts)_
244
+ _See code: [src/commands/branch/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/delete.ts)_
223
245
 
224
246
  ## `eas branch:list`
225
247
 
@@ -240,7 +262,7 @@ DESCRIPTION
240
262
  list all branches
241
263
  ```
242
264
 
243
- _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/branch/list.ts)_
265
+ _See code: [src/commands/branch/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/list.ts)_
244
266
 
245
267
  ## `eas branch:rename`
246
268
 
@@ -259,7 +281,7 @@ DESCRIPTION
259
281
  rename a branch
260
282
  ```
261
283
 
262
- _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/branch/rename.ts)_
284
+ _See code: [src/commands/branch/rename.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/rename.ts)_
263
285
 
264
286
  ## `eas branch:view [NAME]`
265
287
 
@@ -283,7 +305,7 @@ DESCRIPTION
283
305
  view a branch
284
306
  ```
285
307
 
286
- _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/branch/view.ts)_
308
+ _See code: [src/commands/branch/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/branch/view.ts)_
287
309
 
288
310
  ## `eas build`
289
311
 
@@ -313,7 +335,7 @@ DESCRIPTION
313
335
  start a build
314
336
  ```
315
337
 
316
- _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/index.ts)_
338
+ _See code: [src/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/index.ts)_
317
339
 
318
340
  ## `eas build:cancel [BUILD_ID]`
319
341
 
@@ -327,7 +349,7 @@ DESCRIPTION
327
349
  cancel a build
328
350
  ```
329
351
 
330
- _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/cancel.ts)_
352
+ _See code: [src/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/cancel.ts)_
331
353
 
332
354
  ## `eas build:configure`
333
355
 
@@ -344,7 +366,7 @@ DESCRIPTION
344
366
  configure the project to support EAS Build
345
367
  ```
346
368
 
347
- _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/configure.ts)_
369
+ _See code: [src/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/configure.ts)_
348
370
 
349
371
  ## `eas build:inspect`
350
372
 
@@ -379,7 +401,7 @@ DESCRIPTION
379
401
  inspect the state of the project at specific build stages, useful for troubleshooting
380
402
  ```
381
403
 
382
- _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/inspect.ts)_
404
+ _See code: [src/commands/build/inspect.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/inspect.ts)_
383
405
 
384
406
  ## `eas build:list`
385
407
 
@@ -412,7 +434,7 @@ DESCRIPTION
412
434
  list all builds for your project
413
435
  ```
414
436
 
415
- _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/list.ts)_
437
+ _See code: [src/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/list.ts)_
416
438
 
417
439
  ## `eas build:submit`
418
440
 
@@ -459,7 +481,7 @@ DESCRIPTION
459
481
  Update version of an app.
460
482
  ```
461
483
 
462
- _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/version/set.ts)_
484
+ _See code: [src/commands/build/version/set.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/version/set.ts)_
463
485
 
464
486
  ## `eas build:version:sync`
465
487
 
@@ -478,7 +500,7 @@ DESCRIPTION
478
500
  Update a version in native code with a value stored on EAS servers
479
501
  ```
480
502
 
481
- _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/version/sync.ts)_
503
+ _See code: [src/commands/build/version/sync.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/version/sync.ts)_
482
504
 
483
505
  ## `eas build:view [BUILD_ID]`
484
506
 
@@ -495,7 +517,7 @@ DESCRIPTION
495
517
  view a build for your project
496
518
  ```
497
519
 
498
- _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/build/view.ts)_
520
+ _See code: [src/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/build/view.ts)_
499
521
 
500
522
  ## `eas channel:create [NAME]`
501
523
 
@@ -515,7 +537,7 @@ DESCRIPTION
515
537
  create a channel
516
538
  ```
517
539
 
518
- _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/channel/create.ts)_
540
+ _See code: [src/commands/channel/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/create.ts)_
519
541
 
520
542
  ## `eas channel:edit [NAME]`
521
543
 
@@ -536,7 +558,7 @@ DESCRIPTION
536
558
  point a channel at a new branch
537
559
  ```
538
560
 
539
- _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/channel/edit.ts)_
561
+ _See code: [src/commands/channel/edit.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/edit.ts)_
540
562
 
541
563
  ## `eas channel:list`
542
564
 
@@ -553,7 +575,7 @@ DESCRIPTION
553
575
  list all channels
554
576
  ```
555
577
 
556
- _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/channel/list.ts)_
578
+ _See code: [src/commands/channel/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/list.ts)_
557
579
 
558
580
  ## `eas channel:view [NAME]`
559
581
 
@@ -573,7 +595,7 @@ DESCRIPTION
573
595
  view a channel
574
596
  ```
575
597
 
576
- _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/channel/view.ts)_
598
+ _See code: [src/commands/channel/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/channel/view.ts)_
577
599
 
578
600
  ## `eas config`
579
601
 
@@ -591,7 +613,7 @@ DESCRIPTION
591
613
  display project configuration (app.json + eas.json)
592
614
  ```
593
615
 
594
- _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/config.ts)_
616
+ _See code: [src/commands/config.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/config.ts)_
595
617
 
596
618
  ## `eas credentials`
597
619
 
@@ -599,13 +621,16 @@ manage credentials
599
621
 
600
622
  ```
601
623
  USAGE
602
- $ eas credentials
624
+ $ eas credentials [-p android|ios]
625
+
626
+ FLAGS
627
+ -p, --platform=(android|ios)
603
628
 
604
629
  DESCRIPTION
605
630
  manage credentials
606
631
  ```
607
632
 
608
- _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/credentials.ts)_
633
+ _See code: [src/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/credentials.ts)_
609
634
 
610
635
  ## `eas device:create`
611
636
 
@@ -619,7 +644,7 @@ DESCRIPTION
619
644
  register new Apple Devices to use for internal distribution
620
645
  ```
621
646
 
622
- _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/device/create.ts)_
647
+ _See code: [src/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/create.ts)_
623
648
 
624
649
  ## `eas device:delete`
625
650
 
@@ -637,7 +662,7 @@ DESCRIPTION
637
662
  remove a registered device from your account
638
663
  ```
639
664
 
640
- _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/device/delete.ts)_
665
+ _See code: [src/commands/device/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/delete.ts)_
641
666
 
642
667
  ## `eas device:list`
643
668
 
@@ -654,7 +679,7 @@ DESCRIPTION
654
679
  list all registered devices for your account
655
680
  ```
656
681
 
657
- _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/device/list.ts)_
682
+ _See code: [src/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/list.ts)_
658
683
 
659
684
  ## `eas device:view [UDID]`
660
685
 
@@ -668,7 +693,7 @@ DESCRIPTION
668
693
  view a device for your project
669
694
  ```
670
695
 
671
- _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/device/view.ts)_
696
+ _See code: [src/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/device/view.ts)_
672
697
 
673
698
  ## `eas diagnostics`
674
699
 
@@ -682,7 +707,7 @@ DESCRIPTION
682
707
  display environment info
683
708
  ```
684
709
 
685
- _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/diagnostics.ts)_
710
+ _See code: [src/commands/diagnostics.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/diagnostics.ts)_
686
711
 
687
712
  ## `eas help [COMMAND]`
688
713
 
@@ -764,7 +789,7 @@ DESCRIPTION
764
789
  generate the local store configuration from the app stores
765
790
  ```
766
791
 
767
- _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/metadata/pull.ts)_
792
+ _See code: [src/commands/metadata/pull.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/metadata/pull.ts)_
768
793
 
769
794
  ## `eas metadata:push`
770
795
 
@@ -781,7 +806,7 @@ DESCRIPTION
781
806
  sync the local store configuration to the app stores
782
807
  ```
783
808
 
784
- _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/metadata/push.ts)_
809
+ _See code: [src/commands/metadata/push.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/metadata/push.ts)_
785
810
 
786
811
  ## `eas project:info`
787
812
 
@@ -795,7 +820,7 @@ DESCRIPTION
795
820
  information about the current project
796
821
  ```
797
822
 
798
- _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/project/info.ts)_
823
+ _See code: [src/commands/project/info.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/project/info.ts)_
799
824
 
800
825
  ## `eas project:init`
801
826
 
@@ -812,7 +837,7 @@ ALIASES
812
837
  $ eas init
813
838
  ```
814
839
 
815
- _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/project/init.ts)_
840
+ _See code: [src/commands/project/init.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/project/init.ts)_
816
841
 
817
842
  ## `eas secret:create`
818
843
 
@@ -832,7 +857,7 @@ DESCRIPTION
832
857
  create an environment secret on the current project or owner account
833
858
  ```
834
859
 
835
- _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/secret/create.ts)_
860
+ _See code: [src/commands/secret/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/secret/create.ts)_
836
861
 
837
862
  ## `eas secret:delete`
838
863
 
@@ -849,7 +874,7 @@ DESCRIPTION
849
874
  delete an environment secret by ID
850
875
  ```
851
876
 
852
- _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/secret/delete.ts)_
877
+ _See code: [src/commands/secret/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/secret/delete.ts)_
853
878
 
854
879
  ## `eas secret:list`
855
880
 
@@ -863,7 +888,7 @@ DESCRIPTION
863
888
  list environment secrets available for your current app
864
889
  ```
865
890
 
866
- _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/secret/list.ts)_
891
+ _See code: [src/commands/secret/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/secret/list.ts)_
867
892
 
868
893
  ## `eas submit`
869
894
 
@@ -893,7 +918,7 @@ ALIASES
893
918
  $ eas build:submit
894
919
  ```
895
920
 
896
- _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/submit.ts)_
921
+ _See code: [src/commands/submit.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/submit.ts)_
897
922
 
898
923
  ## `eas update`
899
924
 
@@ -923,7 +948,7 @@ DESCRIPTION
923
948
  publish an update group
924
949
  ```
925
950
 
926
- _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/update/index.ts)_
951
+ _See code: [src/commands/update/index.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/index.ts)_
927
952
 
928
953
  ## `eas update:configure`
929
954
 
@@ -940,7 +965,7 @@ DESCRIPTION
940
965
  configure the project to support EAS Update
941
966
  ```
942
967
 
943
- _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/update/configure.ts)_
968
+ _See code: [src/commands/update/configure.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/configure.ts)_
944
969
 
945
970
  ## `eas update:delete GROUPID`
946
971
 
@@ -960,7 +985,7 @@ DESCRIPTION
960
985
  delete all the updates in an update group
961
986
  ```
962
987
 
963
- _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/update/delete.ts)_
988
+ _See code: [src/commands/update/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/delete.ts)_
964
989
 
965
990
  ## `eas update:list`
966
991
 
@@ -979,7 +1004,7 @@ DESCRIPTION
979
1004
  view the recent updates for a branch
980
1005
  ```
981
1006
 
982
- _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/update/list.ts)_
1007
+ _See code: [src/commands/update/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/list.ts)_
983
1008
 
984
1009
  ## `eas update:view GROUPID`
985
1010
 
@@ -999,7 +1024,7 @@ DESCRIPTION
999
1024
  update group details
1000
1025
  ```
1001
1026
 
1002
- _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/update/view.ts)_
1027
+ _See code: [src/commands/update/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/update/view.ts)_
1003
1028
 
1004
1029
  ## `eas webhook:create`
1005
1030
 
@@ -1019,7 +1044,7 @@ DESCRIPTION
1019
1044
  create a webhook
1020
1045
  ```
1021
1046
 
1022
- _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/webhook/create.ts)_
1047
+ _See code: [src/commands/webhook/create.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/create.ts)_
1023
1048
 
1024
1049
  ## `eas webhook:delete [ID]`
1025
1050
 
@@ -1036,7 +1061,7 @@ DESCRIPTION
1036
1061
  delete a webhook
1037
1062
  ```
1038
1063
 
1039
- _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1064
+ _See code: [src/commands/webhook/delete.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/delete.ts)_
1040
1065
 
1041
1066
  ## `eas webhook:list`
1042
1067
 
@@ -1053,7 +1078,7 @@ DESCRIPTION
1053
1078
  list webhooks
1054
1079
  ```
1055
1080
 
1056
- _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/webhook/list.ts)_
1081
+ _See code: [src/commands/webhook/list.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/list.ts)_
1057
1082
 
1058
1083
  ## `eas webhook:update`
1059
1084
 
@@ -1074,7 +1099,7 @@ DESCRIPTION
1074
1099
  update a webhook
1075
1100
  ```
1076
1101
 
1077
- _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/webhook/update.ts)_
1102
+ _See code: [src/commands/webhook/update.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/update.ts)_
1078
1103
 
1079
1104
  ## `eas webhook:view ID`
1080
1105
 
@@ -1091,7 +1116,7 @@ DESCRIPTION
1091
1116
  view a webhook
1092
1117
  ```
1093
1118
 
1094
- _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v1.0.0/packages/eas-cli/src/commands/webhook/view.ts)_
1119
+ _See code: [src/commands/webhook/view.ts](https://github.com/expo/eas-cli/blob/v1.2.0/packages/eas-cli/src/commands/webhook/view.ts)_
1095
1120
 
1096
1121
  ## `eas whoami`
1097
1122
 
@@ -12,7 +12,10 @@ export declare enum SubmissionEvent {
12
12
  GATHER_ARCHIVE_FAIL = "submit cli gather archive fail",
13
13
  SUBMIT_REQUEST_ATTEMPT = "submit cli request attempt",
14
14
  SUBMIT_REQUEST_SUCCESS = "submit cli request success",
15
- SUBMIT_REQUEST_FAIL = "submit cli request fail"
15
+ SUBMIT_REQUEST_FAIL = "submit cli request fail",
16
+ API_KEY_DOWNLOAD_FAIL = "submit cli credentials api key download fail",
17
+ API_KEY_DOWNLOAD_RETRY = "submit cli credentials api key download fail temporary",
18
+ API_KEY_DOWNLOAD_SUCCESS = "submit cli credentials api key download succeed"
16
19
  }
17
20
  export declare enum BuildEvent {
18
21
  BUILD_COMMAND = "build cli build command",
@@ -17,6 +17,9 @@ var SubmissionEvent;
17
17
  SubmissionEvent["SUBMIT_REQUEST_ATTEMPT"] = "submit cli request attempt";
18
18
  SubmissionEvent["SUBMIT_REQUEST_SUCCESS"] = "submit cli request success";
19
19
  SubmissionEvent["SUBMIT_REQUEST_FAIL"] = "submit cli request fail";
20
+ SubmissionEvent["API_KEY_DOWNLOAD_FAIL"] = "submit cli credentials api key download fail";
21
+ SubmissionEvent["API_KEY_DOWNLOAD_RETRY"] = "submit cli credentials api key download fail temporary";
22
+ SubmissionEvent["API_KEY_DOWNLOAD_SUCCESS"] = "submit cli credentials api key download succeed";
20
23
  })(SubmissionEvent = exports.SubmissionEvent || (exports.SubmissionEvent = {}));
21
24
  var BuildEvent;
22
25
  (function (BuildEvent) {
@@ -31,7 +31,7 @@ This means that it will most likely produce an AAB and you will not be able to i
31
31
  log_1.default.newLine();
32
32
  const confirmed = await (0, prompts_1.toggleConfirmAsync)({ message: 'Would you like to proceed?' });
33
33
  if (!confirmed) {
34
- log_1.default.error('Please update eas.json and come back again.');
34
+ log_1.default.error('Update eas.json and come back again.');
35
35
  process.exit(1);
36
36
  }
37
37
  }
@@ -81,15 +81,15 @@ exports.prepareBuildRequestForPlatformAsync = prepareBuildRequestForPlatformAsyn
81
81
  function handleBuildRequestError(error, platform) {
82
82
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
83
83
  if (((_c = (_b = (_a = error === null || error === void 0 ? void 0 : error.graphQLErrors) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.extensions) === null || _c === void 0 ? void 0 : _c.errorCode) === 'TURTLE_DEPRECATED_JOB_FORMAT') {
84
- log_1.default.error('EAS Build API has changed, please upgrade to the latest eas-cli version.');
84
+ log_1.default.error('EAS Build API has changed. Upgrade to the latest eas-cli version.');
85
85
  throw new Error('Build request failed.');
86
86
  }
87
87
  else if (((_f = (_e = (_d = error === null || error === void 0 ? void 0 : error.graphQLErrors) === null || _d === void 0 ? void 0 : _d[0]) === null || _e === void 0 ? void 0 : _e.extensions) === null || _f === void 0 ? void 0 : _f.errorCode) === 'EAS_BUILD_DOWN_FOR_MAINTENANCE') {
88
- log_1.default.error('EAS Build is down for maintenance, please try again later. Check https://status.expo.dev/ for updates.');
88
+ log_1.default.error('EAS Build is down for maintenance. Try again later. Check https://status.expo.dev/ for updates.');
89
89
  throw new Error('Build request failed.');
90
90
  }
91
91
  else if (((_j = (_h = (_g = error === null || error === void 0 ? void 0 : error.graphQLErrors) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.extensions) === null || _j === void 0 ? void 0 : _j.errorCode) === 'EAS_BUILD_FREE_TIER_DISABLED') {
92
- log_1.default.error('EAS Build free tier is temporarily disabled, please try again later. Check https://status.expo.dev/ for updates.');
92
+ log_1.default.error('EAS Build free tier is temporarily disabled. Try again later. Check https://status.expo.dev/ for updates.');
93
93
  throw new Error('Build request failed.');
94
94
  }
95
95
  else if (((_m = (_l = (_k = error === null || error === void 0 ? void 0 : error.graphQLErrors) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.extensions) === null || _m === void 0 ? void 0 : _m.errorCode) === 'EAS_BUILD_TOO_MANY_PENDING_BUILDS') {
@@ -97,7 +97,7 @@ function handleBuildRequestError(error, platform) {
97
97
  throw new Error('Build request failed.');
98
98
  }
99
99
  else if (error === null || error === void 0 ? void 0 : error.graphQLErrors) {
100
- log_1.default.error('Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, please report the issue.');
100
+ log_1.default.error('Build request failed. Make sure you are using the latest eas-cli version. If the problem persists, report the issue.');
101
101
  }
102
102
  throw error;
103
103
  }
@@ -32,6 +32,7 @@ async function createBuildContextAsync({ buildProfileName, buildProfile, easJson
32
32
  projectDir,
33
33
  user,
34
34
  env: buildProfile.env,
35
+ easJsonCliConfig,
35
36
  });
36
37
  const devClientProperties = getDevClientEventProperties({
37
38
  platform,
@@ -40,6 +40,5 @@ function transformIosSecrets(secrets) {
40
40
  }
41
41
  return {
42
42
  buildCredentials,
43
- environmentSecrets: secrets.env,
44
43
  };
45
44
  }
@@ -71,7 +71,7 @@ function printDeprecationWarnings(deprecationInfo) {
71
71
  return;
72
72
  }
73
73
  if (deprecationInfo.type === generated_1.EasBuildDeprecationInfoType.Internal) {
74
- log_1.default.warn('This command is using API that soon will be deprecated, please update eas-cli.');
74
+ log_1.default.warn('This command is using API that soon will be deprecated. Upgrade EAS CLI.');
75
75
  log_1.default.warn("Changes won't affect your project config.");
76
76
  log_1.default.warn(deprecationInfo.message);
77
77
  }
@@ -80,7 +80,7 @@ function printDeprecationWarnings(deprecationInfo) {
80
80
  log_1.default.warn(deprecationInfo.message);
81
81
  }
82
82
  else {
83
- log_1.default.warn('An unexpected warning was encountered. Please report it as a bug:');
83
+ log_1.default.warn('An unexpected warning was encountered. Report it as a bug:');
84
84
  log_1.default.warn(deprecationInfo);
85
85
  }
86
86
  }
@@ -25,7 +25,7 @@ async function maybeBailOnRepoStatusAsync() {
25
25
  message: `Would you like to proceed?`,
26
26
  });
27
27
  if (!answer) {
28
- throw new Error('Please commit all changes. Aborting...');
28
+ throw new Error('Commit all changes. Aborting...');
29
29
  }
30
30
  }
31
31
  exports.maybeBailOnRepoStatusAsync = maybeBailOnRepoStatusAsync;
@@ -35,9 +35,9 @@ async function ensureRepoIsCleanAsync(nonInteractive = false) {
35
35
  }
36
36
  log_1.default.addNewLineIfNone();
37
37
  log_1.default.warn(`${chalk_1.default.bold('Warning!')} Your repository working tree is dirty.`);
38
- log_1.default.log(`This operation needs to be run on a clean working tree, please ${chalk_1.default.bold('commit all your changes before proceeding')}.`);
38
+ log_1.default.log(`This operation needs to be run on a clean working tree. ${chalk_1.default.bold('Commit all your changes before proceeding')}.`);
39
39
  if (nonInteractive) {
40
- throw new Error('Please commit all changes. Aborting...');
40
+ throw new Error('Commit all changes. Aborting...');
41
41
  }
42
42
  const answer = await (0, prompts_1.confirmAsync)({
43
43
  message: `Commit changes to git?`,
@@ -46,7 +46,7 @@ async function ensureRepoIsCleanAsync(nonInteractive = false) {
46
46
  await commitPromptAsync({ commitAllFiles: true });
47
47
  }
48
48
  else {
49
- throw new Error('Please commit all changes. Aborting...');
49
+ throw new Error('Commit all changes. Aborting...');
50
50
  }
51
51
  }
52
52
  exports.ensureRepoIsCleanAsync = ensureRepoIsCleanAsync;
@@ -10,4 +10,6 @@ export default abstract class EasCommand extends Command {
10
10
  run(): Promise<any>;
11
11
  finally(err: Error): Promise<any>;
12
12
  private applyCliConfigAsync;
13
+ private ensureEasCliIsNotInDependenciesAsync;
14
+ private isEasCliInDependenciesAsync;
13
15
  }
@@ -2,9 +2,14 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const eas_json_1 = require("@expo/eas-json");
5
+ const PackageManagerUtils = tslib_1.__importStar(require("@expo/package-manager"));
5
6
  const core_1 = require("@oclif/core");
7
+ const chalk_1 = tslib_1.__importDefault(require("chalk"));
8
+ const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
9
+ const path_1 = tslib_1.__importDefault(require("path"));
6
10
  const semver_1 = tslib_1.__importDefault(require("semver"));
7
11
  const rudderstackClient_1 = require("../analytics/rudderstackClient");
12
+ const log_1 = require("../log");
8
13
  const projectUtils_1 = require("../project/projectUtils");
9
14
  const User_1 = require("../user/User");
10
15
  const actions_1 = require("../user/actions");
@@ -26,7 +31,9 @@ class EasCommand extends core_1.Command {
26
31
  var _a;
27
32
  await (0, rudderstackClient_1.initAsync)();
28
33
  if (this.mustBeRunInsideProject) {
29
- await this.applyCliConfigAsync();
34
+ const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
35
+ await this.applyCliConfigAsync(projectDir);
36
+ await this.ensureEasCliIsNotInDependenciesAsync(projectDir);
30
37
  }
31
38
  if (this.requiresAuthentication) {
32
39
  const { flags } = await this.parse();
@@ -48,8 +55,7 @@ class EasCommand extends core_1.Command {
48
55
  await (0, rudderstackClient_1.flushAsync)();
49
56
  return super.finally(err);
50
57
  }
51
- async applyCliConfigAsync() {
52
- const projectDir = await (0, projectUtils_1.findProjectRootAsync)();
58
+ async applyCliConfigAsync(projectDir) {
53
59
  const easJsonReader = new eas_json_1.EasJsonReader(projectDir);
54
60
  const config = await easJsonReader.getCliConfigAsync();
55
61
  if ((config === null || config === void 0 ? void 0 : config.version) && !semver_1.default.satisfies(easCli_1.easCliVersion, config.version)) {
@@ -59,5 +65,40 @@ class EasCommand extends core_1.Command {
59
65
  (0, vcs_1.setVcsClient)(new git_1.default());
60
66
  }
61
67
  }
68
+ async ensureEasCliIsNotInDependenciesAsync(projectDir) {
69
+ var _a;
70
+ let printCliVersionWarning = false;
71
+ const consoleWarn = (msg) => {
72
+ if (msg) {
73
+ // eslint-disable-next-line no-console
74
+ console.warn(chalk_1.default.yellow(msg));
75
+ }
76
+ else {
77
+ // eslint-disable-next-line no-console
78
+ console.warn();
79
+ }
80
+ };
81
+ if (await this.isEasCliInDependenciesAsync(projectDir)) {
82
+ printCliVersionWarning = true;
83
+ consoleWarn(`Found ${chalk_1.default.bold('eas-cli')} in your project dependencies.`);
84
+ }
85
+ const maybeRepoRoot = (_a = PackageManagerUtils.findWorkspaceRoot(projectDir)) !== null && _a !== void 0 ? _a : projectDir;
86
+ if (maybeRepoRoot !== projectDir && (await this.isEasCliInDependenciesAsync(maybeRepoRoot))) {
87
+ printCliVersionWarning = true;
88
+ consoleWarn(`Found ${chalk_1.default.bold('eas-cli')} in your monorepo dependencies.`);
89
+ }
90
+ if (printCliVersionWarning) {
91
+ consoleWarn(`It's recommended to use the ${chalk_1.default.bold('"cli.version"')} field in eas.json to enforce the ${chalk_1.default.bold('eas-cli')} version for your project.`);
92
+ consoleWarn((0, log_1.learnMore)('https://github.com/expo/eas-cli#enforcing-eas-cli-version-for-your-project'));
93
+ consoleWarn();
94
+ }
95
+ }
96
+ async isEasCliInDependenciesAsync(dir) {
97
+ var _a, _b;
98
+ const packageJsonPath = path_1.default.join(dir, 'package.json');
99
+ const packageJson = JSON.parse(await fs_extra_1.default.readFile(packageJsonPath, 'utf8'));
100
+ return (((_a = packageJson === null || packageJson === void 0 ? void 0 : packageJson.dependencies) === null || _a === void 0 ? void 0 : _a['eas-cli']) !== undefined ||
101
+ ((_b = packageJson === null || packageJson === void 0 ? void 0 : packageJson.devDependencies) === null || _b === void 0 ? void 0 : _b['eas-cli']) !== undefined);
102
+ }
62
103
  }
63
104
  exports.default = EasCommand;