@capuchoo/cli 0.8.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/README.md +211 -23
  2. package/dist/cli/members.d.ts +23 -0
  3. package/dist/cli/members.d.ts.map +1 -0
  4. package/dist/cli/members.js +38 -0
  5. package/dist/cli/members.js.map +1 -0
  6. package/dist/cli/onboarding.d.ts +41 -0
  7. package/dist/cli/onboarding.d.ts.map +1 -0
  8. package/dist/cli/onboarding.js +94 -0
  9. package/dist/cli/onboarding.js.map +1 -0
  10. package/dist/cli/team.d.ts +16 -0
  11. package/dist/cli/team.d.ts.map +1 -0
  12. package/dist/cli/team.js +32 -0
  13. package/dist/cli/team.js.map +1 -0
  14. package/dist/commands/app/grant.d.ts +11 -0
  15. package/dist/commands/app/grant.d.ts.map +1 -0
  16. package/dist/commands/app/grant.js +31 -0
  17. package/dist/commands/app/grant.js.map +1 -0
  18. package/dist/commands/app/revoke.d.ts +13 -0
  19. package/dist/commands/app/revoke.d.ts.map +1 -0
  20. package/dist/commands/app/revoke.js +40 -0
  21. package/dist/commands/app/revoke.js.map +1 -0
  22. package/dist/commands/app/roles.d.ts +7 -0
  23. package/dist/commands/app/roles.d.ts.map +1 -0
  24. package/dist/commands/app/roles.js +30 -0
  25. package/dist/commands/app/roles.js.map +1 -0
  26. package/dist/commands/auth/issue.d.ts +12 -0
  27. package/dist/commands/auth/issue.d.ts.map +1 -0
  28. package/dist/commands/auth/issue.js +52 -0
  29. package/dist/commands/auth/issue.js.map +1 -0
  30. package/dist/commands/auth/keys.d.ts +7 -0
  31. package/dist/commands/auth/keys.d.ts.map +1 -0
  32. package/dist/commands/auth/keys.js +39 -0
  33. package/dist/commands/auth/keys.js.map +1 -0
  34. package/dist/commands/auth/login.d.ts +20 -0
  35. package/dist/commands/auth/login.d.ts.map +1 -1
  36. package/dist/commands/auth/login.js +90 -11
  37. package/dist/commands/auth/login.js.map +1 -1
  38. package/dist/commands/auth/revoke.d.ts +13 -0
  39. package/dist/commands/auth/revoke.d.ts.map +1 -0
  40. package/dist/commands/auth/revoke.js +48 -0
  41. package/dist/commands/auth/revoke.js.map +1 -0
  42. package/dist/commands/doctor.d.ts.map +1 -1
  43. package/dist/commands/doctor.js +1 -1
  44. package/dist/commands/doctor.js.map +1 -1
  45. package/dist/commands/init.d.ts +13 -0
  46. package/dist/commands/init.d.ts.map +1 -1
  47. package/dist/commands/init.js +87 -12
  48. package/dist/commands/init.js.map +1 -1
  49. package/dist/commands/menu.d.ts +3 -0
  50. package/dist/commands/menu.d.ts.map +1 -1
  51. package/dist/commands/menu.js +70 -15
  52. package/dist/commands/menu.js.map +1 -1
  53. package/dist/commands/org/invite.d.ts +14 -0
  54. package/dist/commands/org/invite.d.ts.map +1 -0
  55. package/dist/commands/org/invite.js +52 -0
  56. package/dist/commands/org/invite.js.map +1 -0
  57. package/dist/commands/org/members.d.ts +10 -0
  58. package/dist/commands/org/members.d.ts.map +1 -0
  59. package/dist/commands/org/members.js +49 -0
  60. package/dist/commands/org/members.js.map +1 -0
  61. package/dist/pipeline/app-identity.d.ts +35 -0
  62. package/dist/pipeline/app-identity.d.ts.map +1 -0
  63. package/dist/pipeline/app-identity.js +109 -0
  64. package/dist/pipeline/app-identity.js.map +1 -0
  65. package/dist/pipeline/capacitor-support.d.ts +1 -1
  66. package/dist/pipeline/capacitor-support.js +1 -1
  67. package/dist/services/cloud.d.ts +69 -1
  68. package/dist/services/cloud.d.ts.map +1 -1
  69. package/dist/services/cloud.js +67 -1
  70. package/dist/services/cloud.js.map +1 -1
  71. package/dist/utils/http.d.ts +5 -0
  72. package/dist/utils/http.d.ts.map +1 -1
  73. package/dist/utils/http.js +13 -2
  74. package/dist/utils/http.js.map +1 -1
  75. package/oclif.manifest.json +292 -2
  76. package/package.json +5 -5
@@ -224,6 +224,47 @@
224
224
  "delete.js"
225
225
  ]
226
226
  },
227
+ "app:grant": {
228
+ "aliases": [],
229
+ "args": {
230
+ "email": {
231
+ "description": "Account to grant",
232
+ "name": "email",
233
+ "required": true
234
+ },
235
+ "role": {
236
+ "description": "One of admin, developer, tester, viewer",
237
+ "name": "role",
238
+ "options": [
239
+ "admin",
240
+ "developer",
241
+ "tester",
242
+ "viewer"
243
+ ],
244
+ "required": true
245
+ }
246
+ },
247
+ "description": "Give someone a role on this app",
248
+ "examples": [
249
+ "<%= config.bin %> app grant dev@company.com developer",
250
+ "<%= config.bin %> app grant qa@company.com tester"
251
+ ],
252
+ "flags": {},
253
+ "hasDynamicHelp": false,
254
+ "hiddenAliases": [],
255
+ "id": "app:grant",
256
+ "pluginAlias": "@capuchoo/cli",
257
+ "pluginName": "@capuchoo/cli",
258
+ "pluginType": "core",
259
+ "strict": true,
260
+ "isESM": true,
261
+ "relativePath": [
262
+ "dist",
263
+ "commands",
264
+ "app",
265
+ "grant.js"
266
+ ]
267
+ },
227
268
  "app:list": {
228
269
  "aliases": [],
229
270
  "args": {},
@@ -251,10 +292,144 @@
251
292
  "list.js"
252
293
  ]
253
294
  },
295
+ "app:revoke": {
296
+ "aliases": [],
297
+ "args": {
298
+ "email": {
299
+ "description": "Account to revoke",
300
+ "name": "email",
301
+ "required": true
302
+ }
303
+ },
304
+ "description": "Remove someone's role on this app",
305
+ "examples": [
306
+ "<%= config.bin %> app revoke dev@company.com"
307
+ ],
308
+ "flags": {
309
+ "yes": {
310
+ "char": "y",
311
+ "description": "Skip the confirmation",
312
+ "name": "yes",
313
+ "allowNo": false,
314
+ "type": "boolean"
315
+ }
316
+ },
317
+ "hasDynamicHelp": false,
318
+ "hiddenAliases": [],
319
+ "id": "app:revoke",
320
+ "pluginAlias": "@capuchoo/cli",
321
+ "pluginName": "@capuchoo/cli",
322
+ "pluginType": "core",
323
+ "strict": true,
324
+ "isESM": true,
325
+ "relativePath": [
326
+ "dist",
327
+ "commands",
328
+ "app",
329
+ "revoke.js"
330
+ ]
331
+ },
332
+ "app:roles": {
333
+ "aliases": [],
334
+ "args": {},
335
+ "description": "Show who can do what on this app",
336
+ "examples": [
337
+ "<%= config.bin %> app roles"
338
+ ],
339
+ "flags": {},
340
+ "hasDynamicHelp": false,
341
+ "hiddenAliases": [],
342
+ "id": "app:roles",
343
+ "pluginAlias": "@capuchoo/cli",
344
+ "pluginName": "@capuchoo/cli",
345
+ "pluginType": "core",
346
+ "strict": true,
347
+ "isESM": true,
348
+ "relativePath": [
349
+ "dist",
350
+ "commands",
351
+ "app",
352
+ "roles.js"
353
+ ]
354
+ },
355
+ "auth:issue": {
356
+ "aliases": [],
357
+ "args": {},
358
+ "description": "Create an API key, optionally limited to one app and one role",
359
+ "examples": [
360
+ "<%= config.bin %> auth issue --name ci --role developer --this-app",
361
+ "<%= config.bin %> auth issue --name readonly --role viewer"
362
+ ],
363
+ "flags": {
364
+ "name": {
365
+ "description": "Label shown in capuchoo auth keys",
366
+ "name": "name",
367
+ "hasDynamicHelp": false,
368
+ "multiple": false,
369
+ "type": "option"
370
+ },
371
+ "role": {
372
+ "description": "Ceiling on what the key may do: viewer, tester, developer, admin",
373
+ "name": "role",
374
+ "hasDynamicHelp": false,
375
+ "multiple": false,
376
+ "options": [
377
+ "viewer",
378
+ "tester",
379
+ "developer",
380
+ "admin"
381
+ ],
382
+ "type": "option"
383
+ },
384
+ "this-app": {
385
+ "description": "Restrict the key to the app this directory is linked to",
386
+ "name": "this-app",
387
+ "allowNo": false,
388
+ "type": "boolean"
389
+ }
390
+ },
391
+ "hasDynamicHelp": false,
392
+ "hiddenAliases": [],
393
+ "id": "auth:issue",
394
+ "pluginAlias": "@capuchoo/cli",
395
+ "pluginName": "@capuchoo/cli",
396
+ "pluginType": "core",
397
+ "strict": true,
398
+ "isESM": true,
399
+ "relativePath": [
400
+ "dist",
401
+ "commands",
402
+ "auth",
403
+ "issue.js"
404
+ ]
405
+ },
406
+ "auth:keys": {
407
+ "aliases": [],
408
+ "args": {},
409
+ "description": "List the API keys on this account",
410
+ "examples": [
411
+ "<%= config.bin %> auth keys"
412
+ ],
413
+ "flags": {},
414
+ "hasDynamicHelp": false,
415
+ "hiddenAliases": [],
416
+ "id": "auth:keys",
417
+ "pluginAlias": "@capuchoo/cli",
418
+ "pluginName": "@capuchoo/cli",
419
+ "pluginType": "core",
420
+ "strict": true,
421
+ "isESM": true,
422
+ "relativePath": [
423
+ "dist",
424
+ "commands",
425
+ "auth",
426
+ "keys.js"
427
+ ]
428
+ },
254
429
  "auth:login": {
255
430
  "aliases": [],
256
431
  "args": {},
257
- "description": "Store an API key for the Capuchoo backend",
432
+ "description": "Sign in to a Capuchoo backend",
258
433
  "examples": [
259
434
  "<%= config.bin %> auth login",
260
435
  "<%= config.bin %> auth login --endpoint https://capucho.internal --api-key cap_..."
@@ -312,6 +487,43 @@
312
487
  "logout.js"
313
488
  ]
314
489
  },
490
+ "auth:revoke": {
491
+ "aliases": [],
492
+ "args": {
493
+ "id": {
494
+ "description": "Key id, from capuchoo auth keys",
495
+ "name": "id",
496
+ "required": true
497
+ }
498
+ },
499
+ "description": "Revoke an API key",
500
+ "examples": [
501
+ "<%= config.bin %> auth revoke <id>"
502
+ ],
503
+ "flags": {
504
+ "yes": {
505
+ "char": "y",
506
+ "description": "Skip the confirmation",
507
+ "name": "yes",
508
+ "allowNo": false,
509
+ "type": "boolean"
510
+ }
511
+ },
512
+ "hasDynamicHelp": false,
513
+ "hiddenAliases": [],
514
+ "id": "auth:revoke",
515
+ "pluginAlias": "@capuchoo/cli",
516
+ "pluginName": "@capuchoo/cli",
517
+ "pluginType": "core",
518
+ "strict": true,
519
+ "isESM": true,
520
+ "relativePath": [
521
+ "dist",
522
+ "commands",
523
+ "auth",
524
+ "revoke.js"
525
+ ]
526
+ },
315
527
  "auth:whoami": {
316
528
  "aliases": [],
317
529
  "args": {},
@@ -813,6 +1025,53 @@
813
1025
  "create.js"
814
1026
  ]
815
1027
  },
1028
+ "org:invite": {
1029
+ "aliases": [],
1030
+ "args": {
1031
+ "email": {
1032
+ "description": "Account to add",
1033
+ "name": "email",
1034
+ "required": true
1035
+ },
1036
+ "role": {
1037
+ "description": "One of owner, admin, member",
1038
+ "name": "role",
1039
+ "options": [
1040
+ "owner",
1041
+ "admin",
1042
+ "member"
1043
+ ],
1044
+ "required": true
1045
+ }
1046
+ },
1047
+ "description": "Add an existing account to an organization",
1048
+ "examples": [
1049
+ "<%= config.bin %> org invite dev@company.com member"
1050
+ ],
1051
+ "flags": {
1052
+ "org": {
1053
+ "description": "Organization by name or id",
1054
+ "name": "org",
1055
+ "hasDynamicHelp": false,
1056
+ "multiple": false,
1057
+ "type": "option"
1058
+ }
1059
+ },
1060
+ "hasDynamicHelp": false,
1061
+ "hiddenAliases": [],
1062
+ "id": "org:invite",
1063
+ "pluginAlias": "@capuchoo/cli",
1064
+ "pluginName": "@capuchoo/cli",
1065
+ "pluginType": "core",
1066
+ "strict": true,
1067
+ "isESM": true,
1068
+ "relativePath": [
1069
+ "dist",
1070
+ "commands",
1071
+ "org",
1072
+ "invite.js"
1073
+ ]
1074
+ },
816
1075
  "org:list": {
817
1076
  "aliases": [],
818
1077
  "args": {},
@@ -840,6 +1099,37 @@
840
1099
  "list.js"
841
1100
  ]
842
1101
  },
1102
+ "org:members": {
1103
+ "aliases": [],
1104
+ "args": {},
1105
+ "description": "List the people in an organization",
1106
+ "examples": [
1107
+ "<%= config.bin %> org members"
1108
+ ],
1109
+ "flags": {
1110
+ "org": {
1111
+ "description": "Organization by name or id",
1112
+ "name": "org",
1113
+ "hasDynamicHelp": false,
1114
+ "multiple": false,
1115
+ "type": "option"
1116
+ }
1117
+ },
1118
+ "hasDynamicHelp": false,
1119
+ "hiddenAliases": [],
1120
+ "id": "org:members",
1121
+ "pluginAlias": "@capuchoo/cli",
1122
+ "pluginName": "@capuchoo/cli",
1123
+ "pluginType": "core",
1124
+ "strict": true,
1125
+ "isESM": true,
1126
+ "relativePath": [
1127
+ "dist",
1128
+ "commands",
1129
+ "org",
1130
+ "members.js"
1131
+ ]
1132
+ },
843
1133
  "version:bump": {
844
1134
  "aliases": [],
845
1135
  "args": {
@@ -941,5 +1231,5 @@
941
1231
  ]
942
1232
  }
943
1233
  },
944
- "version": "0.8.0"
1234
+ "version": "0.9.1"
945
1235
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capuchoo/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "description": "Builds and publishes OTA and native releases for Capacitor applications through Capucho.",
5
5
  "keywords": [
6
6
  "capacitor",
@@ -37,7 +37,7 @@
37
37
  "@oclif/plugin-help": "^6",
38
38
  "chalk": "^5.6.2",
39
39
  "ora": "^9.0.0",
40
- "@capuchoo/core": "^0.4.0"
40
+ "@capuchoo/core": "^0.6.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^24.10.4",
@@ -55,10 +55,10 @@
55
55
  "topicSeparator": " ",
56
56
  "topics": {
57
57
  "app": {
58
- "description": "List and delete apps"
58
+ "description": "List and delete apps, and manage who can publish"
59
59
  },
60
60
  "auth": {
61
- "description": "Sign in to a Capuchoo backend"
61
+ "description": "Sign in, and manage this account's API keys"
62
62
  },
63
63
  "channel": {
64
64
  "description": "Create and inspect an app's channels"
@@ -70,7 +70,7 @@
70
70
  "description": "Build and publish a release"
71
71
  },
72
72
  "org": {
73
- "description": "Create and list organizations"
73
+ "description": "Create organizations and manage who is in them"
74
74
  },
75
75
  "version": {
76
76
  "description": "Manage the app version and native build numbers"