@capuchoo/cli 0.2.1 → 0.4.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 (79) hide show
  1. package/README.md +233 -26
  2. package/dist/base-command.d.ts +1 -1
  3. package/dist/base-command.js +1 -1
  4. package/dist/cli/prompts.d.ts +43 -0
  5. package/dist/cli/prompts.d.ts.map +1 -0
  6. package/dist/cli/prompts.js +137 -0
  7. package/dist/cli/prompts.js.map +1 -0
  8. package/dist/commands/app/delete.d.ts +20 -0
  9. package/dist/commands/app/delete.d.ts.map +1 -0
  10. package/dist/commands/app/delete.js +71 -0
  11. package/dist/commands/app/delete.js.map +1 -0
  12. package/dist/commands/app/list.d.ts +9 -0
  13. package/dist/commands/app/list.d.ts.map +1 -0
  14. package/dist/commands/app/list.js +40 -0
  15. package/dist/commands/app/list.js.map +1 -0
  16. package/dist/commands/auth/login.d.ts.map +1 -1
  17. package/dist/commands/auth/login.js +10 -13
  18. package/dist/commands/auth/login.js.map +1 -1
  19. package/dist/commands/auth/logout.js +2 -2
  20. package/dist/commands/auth/logout.js.map +1 -1
  21. package/dist/commands/auth/whoami.d.ts.map +1 -1
  22. package/dist/commands/auth/whoami.js +14 -2
  23. package/dist/commands/auth/whoami.js.map +1 -1
  24. package/dist/commands/channel/create.d.ts +25 -0
  25. package/dist/commands/channel/create.d.ts.map +1 -0
  26. package/dist/commands/channel/create.js +96 -0
  27. package/dist/commands/channel/create.js.map +1 -0
  28. package/dist/commands/channel/delete.d.ts +19 -0
  29. package/dist/commands/channel/delete.d.ts.map +1 -0
  30. package/dist/commands/channel/delete.js +66 -0
  31. package/dist/commands/channel/delete.js.map +1 -0
  32. package/dist/commands/channel/list.js +1 -1
  33. package/dist/commands/channel/list.js.map +1 -1
  34. package/dist/commands/doctor.d.ts +28 -0
  35. package/dist/commands/doctor.d.ts.map +1 -0
  36. package/dist/commands/doctor.js +278 -0
  37. package/dist/commands/doctor.js.map +1 -0
  38. package/dist/commands/init.d.ts +11 -0
  39. package/dist/commands/init.d.ts.map +1 -1
  40. package/dist/commands/init.js +151 -58
  41. package/dist/commands/init.js.map +1 -1
  42. package/dist/commands/org/create.d.ts +19 -0
  43. package/dist/commands/org/create.d.ts.map +1 -0
  44. package/dist/commands/org/create.js +45 -0
  45. package/dist/commands/org/create.js.map +1 -0
  46. package/dist/commands/org/list.d.ts +9 -0
  47. package/dist/commands/org/list.d.ts.map +1 -0
  48. package/dist/commands/org/list.js +41 -0
  49. package/dist/commands/org/list.js.map +1 -0
  50. package/dist/commands/setup.d.ts +16 -0
  51. package/dist/commands/setup.d.ts.map +1 -0
  52. package/dist/commands/setup.js +168 -0
  53. package/dist/commands/setup.js.map +1 -0
  54. package/dist/deploy/execute.d.ts.map +1 -1
  55. package/dist/deploy/execute.js +43 -30
  56. package/dist/deploy/execute.js.map +1 -1
  57. package/dist/pipeline/build.js +1 -1
  58. package/dist/pipeline/build.js.map +1 -1
  59. package/dist/pipeline/capacitor-support.d.ts +53 -0
  60. package/dist/pipeline/capacitor-support.d.ts.map +1 -0
  61. package/dist/pipeline/capacitor-support.js +95 -0
  62. package/dist/pipeline/capacitor-support.js.map +1 -0
  63. package/dist/pipeline/deploy.js +1 -1
  64. package/dist/pipeline/deploy.js.map +1 -1
  65. package/dist/pipeline/flavour.js +1 -1
  66. package/dist/pipeline/flavour.js.map +1 -1
  67. package/dist/services/cloud.d.ts +22 -2
  68. package/dist/services/cloud.d.ts.map +1 -1
  69. package/dist/services/cloud.js +26 -3
  70. package/dist/services/cloud.js.map +1 -1
  71. package/dist/utils/config.d.ts +1 -1
  72. package/dist/utils/config.js +3 -3
  73. package/dist/utils/config.js.map +1 -1
  74. package/dist/utils/http.d.ts +2 -0
  75. package/dist/utils/http.d.ts.map +1 -1
  76. package/dist/utils/http.js +4 -0
  77. package/dist/utils/http.js.map +1 -1
  78. package/oclif.manifest.json +352 -5
  79. package/package.json +13 -6
@@ -1,21 +1,92 @@
1
1
  {
2
2
  "commands": {
3
+ "doctor": {
4
+ "aliases": [],
5
+ "args": {},
6
+ "description": "Check that this app, its credentials and its channels are usable",
7
+ "examples": [
8
+ "<%= config.bin %> doctor"
9
+ ],
10
+ "flags": {},
11
+ "hasDynamicHelp": false,
12
+ "hiddenAliases": [],
13
+ "id": "doctor",
14
+ "pluginAlias": "@capuchoo/cli",
15
+ "pluginName": "@capuchoo/cli",
16
+ "pluginType": "core",
17
+ "strict": true,
18
+ "isESM": true,
19
+ "relativePath": [
20
+ "dist",
21
+ "commands",
22
+ "doctor.js"
23
+ ]
24
+ },
3
25
  "init": {
4
26
  "aliases": [],
5
27
  "args": {},
6
- "description": "Link this directory to a Capucho app and write .capucho/project.json",
28
+ "description": "Link this directory to a Capuchoo app and write .capuchoo/project.json",
7
29
  "examples": [
8
30
  "<%= config.bin %> init",
9
- "<%= config.bin %> init --link"
31
+ "<%= config.bin %> init --link",
32
+ "<%= config.bin %> init --create",
33
+ "<%= config.bin %> init --create --name \"My App\" --app-id com.acme.app --channel staging"
10
34
  ],
11
35
  "flags": {
12
36
  "link": {
13
37
  "char": "l",
14
- "description": "Link an existing app instead of creating one",
38
+ "description": "Link an existing app instead of asking",
39
+ "exclusive": [
40
+ "create"
41
+ ],
15
42
  "name": "link",
16
43
  "allowNo": false,
17
44
  "type": "boolean"
18
45
  },
46
+ "create": {
47
+ "char": "c",
48
+ "description": "Create a new app instead of asking",
49
+ "exclusive": [
50
+ "link"
51
+ ],
52
+ "name": "create",
53
+ "allowNo": false,
54
+ "type": "boolean"
55
+ },
56
+ "name": {
57
+ "dependsOn": [
58
+ "create"
59
+ ],
60
+ "description": "Name of the app to create (default: this directory's name)",
61
+ "name": "name",
62
+ "hasDynamicHelp": false,
63
+ "multiple": false,
64
+ "type": "option"
65
+ },
66
+ "app-id": {
67
+ "description": "Bundle identifier of the app, e.g. com.company.app",
68
+ "name": "app-id",
69
+ "hasDynamicHelp": false,
70
+ "multiple": false,
71
+ "type": "option"
72
+ },
73
+ "org": {
74
+ "dependsOn": [
75
+ "create"
76
+ ],
77
+ "description": "Organization to create the app in, by name or id",
78
+ "name": "org",
79
+ "hasDynamicHelp": false,
80
+ "multiple": false,
81
+ "type": "option"
82
+ },
83
+ "channel": {
84
+ "description": "Create this channel after linking, e.g. staging",
85
+ "name": "channel",
86
+ "hasDynamicHelp": false,
87
+ "multiple": false,
88
+ "type": "option"
89
+ },
19
90
  "force": {
20
91
  "char": "f",
21
92
  "description": "Overwrite an existing project.json",
@@ -38,10 +109,129 @@
38
109
  "init.js"
39
110
  ]
40
111
  },
112
+ "setup": {
113
+ "aliases": [],
114
+ "args": {},
115
+ "description": "Install everything this app needs to receive updates",
116
+ "examples": [
117
+ "<%= config.bin %> setup",
118
+ "<%= config.bin %> setup --native",
119
+ "<%= config.bin %> setup --dry-run"
120
+ ],
121
+ "flags": {
122
+ "native": {
123
+ "description": "Also install what downloading and installing an APK needs",
124
+ "name": "native",
125
+ "allowNo": false,
126
+ "type": "boolean"
127
+ },
128
+ "skip-telemetry": {
129
+ "description": "Do not install @capacitor/device",
130
+ "name": "skip-telemetry",
131
+ "allowNo": false,
132
+ "type": "boolean"
133
+ },
134
+ "skip-sync": {
135
+ "description": "Do not run cap sync afterwards",
136
+ "name": "skip-sync",
137
+ "allowNo": false,
138
+ "type": "boolean"
139
+ },
140
+ "dry-run": {
141
+ "description": "Report what would be installed, change nothing",
142
+ "name": "dry-run",
143
+ "allowNo": false,
144
+ "type": "boolean"
145
+ },
146
+ "yes": {
147
+ "char": "y",
148
+ "description": "Accept every prompt",
149
+ "name": "yes",
150
+ "allowNo": false,
151
+ "type": "boolean"
152
+ }
153
+ },
154
+ "hasDynamicHelp": false,
155
+ "hiddenAliases": [],
156
+ "id": "setup",
157
+ "pluginAlias": "@capuchoo/cli",
158
+ "pluginName": "@capuchoo/cli",
159
+ "pluginType": "core",
160
+ "strict": true,
161
+ "isESM": true,
162
+ "relativePath": [
163
+ "dist",
164
+ "commands",
165
+ "setup.js"
166
+ ]
167
+ },
168
+ "app:delete": {
169
+ "aliases": [],
170
+ "args": {
171
+ "appId": {
172
+ "description": "Bundle identifier of the app to delete",
173
+ "name": "appId"
174
+ }
175
+ },
176
+ "description": "Delete an app, its channels and its bundles",
177
+ "examples": [
178
+ "<%= config.bin %> app delete com.company.app"
179
+ ],
180
+ "flags": {
181
+ "yes": {
182
+ "char": "y",
183
+ "description": "Skip the confirmation (scripts and CI)",
184
+ "name": "yes",
185
+ "allowNo": false,
186
+ "type": "boolean"
187
+ }
188
+ },
189
+ "hasDynamicHelp": false,
190
+ "hiddenAliases": [],
191
+ "id": "app:delete",
192
+ "pluginAlias": "@capuchoo/cli",
193
+ "pluginName": "@capuchoo/cli",
194
+ "pluginType": "core",
195
+ "strict": true,
196
+ "isESM": true,
197
+ "relativePath": [
198
+ "dist",
199
+ "commands",
200
+ "app",
201
+ "delete.js"
202
+ ]
203
+ },
204
+ "app:list": {
205
+ "aliases": [],
206
+ "args": {},
207
+ "description": "List the apps this account can reach",
208
+ "flags": {
209
+ "json": {
210
+ "description": "Machine-readable output",
211
+ "name": "json",
212
+ "allowNo": false,
213
+ "type": "boolean"
214
+ }
215
+ },
216
+ "hasDynamicHelp": false,
217
+ "hiddenAliases": [],
218
+ "id": "app:list",
219
+ "pluginAlias": "@capuchoo/cli",
220
+ "pluginName": "@capuchoo/cli",
221
+ "pluginType": "core",
222
+ "strict": true,
223
+ "isESM": true,
224
+ "relativePath": [
225
+ "dist",
226
+ "commands",
227
+ "app",
228
+ "list.js"
229
+ ]
230
+ },
41
231
  "auth:login": {
42
232
  "aliases": [],
43
233
  "args": {},
44
- "description": "Store an API key for the Capucho backend",
234
+ "description": "Store an API key for the Capuchoo backend",
45
235
  "examples": [
46
236
  "<%= config.bin %> auth login",
47
237
  "<%= config.bin %> auth login --endpoint https://capucho.internal --api-key cap_..."
@@ -126,6 +316,100 @@
126
316
  "whoami.js"
127
317
  ]
128
318
  },
319
+ "channel:create": {
320
+ "aliases": [],
321
+ "args": {
322
+ "name": {
323
+ "description": "Name of the channel, e.g. staging",
324
+ "name": "name"
325
+ }
326
+ },
327
+ "description": "Create a channel for this app",
328
+ "examples": [
329
+ "<%= config.bin %> channel create staging",
330
+ "<%= config.bin %> channel create beta --environment staging",
331
+ "<%= config.bin %> channel create prod --environment prod --yes"
332
+ ],
333
+ "flags": {
334
+ "environment": {
335
+ "char": "e",
336
+ "description": "Which build flavour this channel serves",
337
+ "name": "environment",
338
+ "hasDynamicHelp": false,
339
+ "multiple": false,
340
+ "options": [
341
+ "dev",
342
+ "staging",
343
+ "prod"
344
+ ],
345
+ "type": "option"
346
+ },
347
+ "yes": {
348
+ "char": "y",
349
+ "description": "Accept the environment even when it disagrees with the name",
350
+ "name": "yes",
351
+ "allowNo": false,
352
+ "type": "boolean"
353
+ },
354
+ "json": {
355
+ "description": "Machine-readable output",
356
+ "name": "json",
357
+ "allowNo": false,
358
+ "type": "boolean"
359
+ }
360
+ },
361
+ "hasDynamicHelp": false,
362
+ "hiddenAliases": [],
363
+ "id": "channel:create",
364
+ "pluginAlias": "@capuchoo/cli",
365
+ "pluginName": "@capuchoo/cli",
366
+ "pluginType": "core",
367
+ "strict": true,
368
+ "isESM": true,
369
+ "relativePath": [
370
+ "dist",
371
+ "commands",
372
+ "channel",
373
+ "create.js"
374
+ ]
375
+ },
376
+ "channel:delete": {
377
+ "aliases": [],
378
+ "args": {
379
+ "name": {
380
+ "description": "Name of the channel to delete",
381
+ "name": "name"
382
+ }
383
+ },
384
+ "description": "Delete one of this app's channels",
385
+ "examples": [
386
+ "<%= config.bin %> channel delete beta",
387
+ "<%= config.bin %> channel delete beta --yes"
388
+ ],
389
+ "flags": {
390
+ "yes": {
391
+ "char": "y",
392
+ "description": "Skip the confirmation",
393
+ "name": "yes",
394
+ "allowNo": false,
395
+ "type": "boolean"
396
+ }
397
+ },
398
+ "hasDynamicHelp": false,
399
+ "hiddenAliases": [],
400
+ "id": "channel:delete",
401
+ "pluginAlias": "@capuchoo/cli",
402
+ "pluginName": "@capuchoo/cli",
403
+ "pluginType": "core",
404
+ "strict": true,
405
+ "isESM": true,
406
+ "relativePath": [
407
+ "dist",
408
+ "commands",
409
+ "channel",
410
+ "delete.js"
411
+ ]
412
+ },
129
413
  "channel:list": {
130
414
  "aliases": [],
131
415
  "args": {},
@@ -463,6 +747,69 @@
463
747
  "ota.js"
464
748
  ]
465
749
  },
750
+ "org:create": {
751
+ "aliases": [],
752
+ "args": {
753
+ "name": {
754
+ "description": "Display name of the organization",
755
+ "name": "name"
756
+ }
757
+ },
758
+ "description": "Create an organization",
759
+ "examples": [
760
+ "<%= config.bin %> org create \"SIG Service\"",
761
+ "<%= config.bin %> org create Acme --json"
762
+ ],
763
+ "flags": {
764
+ "json": {
765
+ "description": "Machine-readable output",
766
+ "name": "json",
767
+ "allowNo": false,
768
+ "type": "boolean"
769
+ }
770
+ },
771
+ "hasDynamicHelp": false,
772
+ "hiddenAliases": [],
773
+ "id": "org:create",
774
+ "pluginAlias": "@capuchoo/cli",
775
+ "pluginName": "@capuchoo/cli",
776
+ "pluginType": "core",
777
+ "strict": true,
778
+ "isESM": true,
779
+ "relativePath": [
780
+ "dist",
781
+ "commands",
782
+ "org",
783
+ "create.js"
784
+ ]
785
+ },
786
+ "org:list": {
787
+ "aliases": [],
788
+ "args": {},
789
+ "description": "List the organizations this account belongs to",
790
+ "flags": {
791
+ "json": {
792
+ "description": "Machine-readable output",
793
+ "name": "json",
794
+ "allowNo": false,
795
+ "type": "boolean"
796
+ }
797
+ },
798
+ "hasDynamicHelp": false,
799
+ "hiddenAliases": [],
800
+ "id": "org:list",
801
+ "pluginAlias": "@capuchoo/cli",
802
+ "pluginName": "@capuchoo/cli",
803
+ "pluginType": "core",
804
+ "strict": true,
805
+ "isESM": true,
806
+ "relativePath": [
807
+ "dist",
808
+ "commands",
809
+ "org",
810
+ "list.js"
811
+ ]
812
+ },
466
813
  "version:bump": {
467
814
  "aliases": [],
468
815
  "args": {
@@ -564,5 +911,5 @@
564
911
  ]
565
912
  }
566
913
  },
567
- "version": "0.2.1"
914
+ "version": "0.4.0"
568
915
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capuchoo/cli",
3
- "version": "0.2.1",
3
+ "version": "0.4.0",
4
4
  "description": "Builds and publishes OTA and native releases for Capacitor applications through Capucho.",
5
5
  "keywords": [
6
6
  "capacitor",
@@ -32,12 +32,12 @@
32
32
  "access": "public"
33
33
  },
34
34
  "dependencies": {
35
- "@inquirer/prompts": "^8.1.0",
35
+ "@clack/prompts": "^1.7.0",
36
36
  "@oclif/core": "^4",
37
37
  "@oclif/plugin-help": "^6",
38
38
  "chalk": "^5.6.2",
39
39
  "ora": "^9.0.0",
40
- "@capuchoo/core": "^0.1.1"
40
+ "@capuchoo/core": "^0.1.2"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^24.10.4",
@@ -54,11 +54,14 @@
54
54
  ],
55
55
  "topicSeparator": " ",
56
56
  "topics": {
57
+ "app": {
58
+ "description": "List and delete apps"
59
+ },
57
60
  "auth": {
58
- "description": "Sign in to a Capucho backend"
61
+ "description": "Sign in to a Capuchoo backend"
59
62
  },
60
63
  "channel": {
61
- "description": "Inspect an app's channels"
64
+ "description": "Create and inspect an app's channels"
62
65
  },
63
66
  "config": {
64
67
  "description": "Inspect resolved configuration and detected tools"
@@ -66,6 +69,9 @@
66
69
  "deploy": {
67
70
  "description": "Build and publish a release"
68
71
  },
72
+ "org": {
73
+ "description": "Create and list organizations"
74
+ },
69
75
  "version": {
70
76
  "description": "Manage the app version and native build numbers"
71
77
  }
@@ -76,6 +82,7 @@
76
82
  },
77
83
  "scripts": {
78
84
  "build": "tsc -b --force",
79
- "test": "vp test --run"
85
+ "test": "vp test --run",
86
+ "readme": "oclif readme"
80
87
  }
81
88
  }