@chabokan.net/cli 0.8.15 → 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 (54) hide show
  1. package/README.md +520 -66
  2. package/dist/base.d.ts +30 -7
  3. package/dist/base.js +163 -14
  4. package/dist/commands/account/info.d.ts +12 -0
  5. package/dist/commands/account/info.js +40 -0
  6. package/dist/commands/account/list.d.ts +5 -1
  7. package/dist/commands/account/list.js +29 -19
  8. package/dist/commands/account/remove.d.ts +5 -1
  9. package/dist/commands/account/remove.js +23 -12
  10. package/dist/commands/account/use.d.ts +6 -2
  11. package/dist/commands/account/use.js +22 -11
  12. package/dist/commands/cloudserver/create.d.ts +40 -0
  13. package/dist/commands/cloudserver/create.js +242 -0
  14. package/dist/commands/cloudserver/delete.d.ts +14 -0
  15. package/dist/commands/cloudserver/delete.js +65 -0
  16. package/dist/commands/cloudserver/list.d.ts +12 -0
  17. package/dist/commands/cloudserver/list.js +46 -0
  18. package/dist/commands/cloudserver/restart.d.ts +13 -0
  19. package/dist/commands/cloudserver/restart.js +51 -0
  20. package/dist/commands/cloudserver/start.d.ts +13 -0
  21. package/dist/commands/cloudserver/start.js +51 -0
  22. package/dist/commands/cloudserver/stop.d.ts +13 -0
  23. package/dist/commands/cloudserver/stop.js +52 -0
  24. package/dist/commands/deploy.d.ts +13 -3
  25. package/dist/commands/deploy.js +96 -60
  26. package/dist/commands/login.d.ts +8 -4
  27. package/dist/commands/login.js +69 -41
  28. package/dist/commands/service/domain/add.d.ts +15 -0
  29. package/dist/commands/service/domain/add.js +74 -0
  30. package/dist/commands/service/domain/remove.d.ts +15 -0
  31. package/dist/commands/service/domain/remove.js +72 -0
  32. package/dist/commands/service/list.d.ts +5 -1
  33. package/dist/commands/service/list.js +29 -21
  34. package/dist/commands/service/logs.d.ts +6 -2
  35. package/dist/commands/service/logs.js +33 -30
  36. package/dist/commands/service/resize.d.ts +9 -5
  37. package/dist/commands/service/resize.js +73 -69
  38. package/dist/commands/service/restart.d.ts +6 -2
  39. package/dist/commands/service/restart.js +28 -32
  40. package/dist/commands/service/start.d.ts +6 -2
  41. package/dist/commands/service/start.js +29 -31
  42. package/dist/commands/service/stop.d.ts +6 -2
  43. package/dist/commands/service/stop.js +29 -31
  44. package/dist/commands/wallet/list.d.ts +12 -0
  45. package/dist/commands/wallet/list.js +41 -0
  46. package/dist/constants.d.ts +2 -0
  47. package/dist/constants.js +7 -2
  48. package/dist/helper.d.ts +23 -7
  49. package/dist/helper.js +294 -113
  50. package/dist/types.d.ts +28 -8
  51. package/dist/ui.d.ts +23 -0
  52. package/dist/ui.js +70 -0
  53. package/oclif.manifest.json +635 -25
  54. package/package.json +39 -35
@@ -3,7 +3,29 @@
3
3
  "deploy": {
4
4
  "aliases": [],
5
5
  "args": {},
6
- "description": "this command help you build and deploy your service to chabokan in easy way.",
6
+ "description": "upload the current project and deploy it to a service",
7
+ "examples": [
8
+ {
9
+ "description": "Deploy the current directory, picking the service from a list",
10
+ "command": "<%= config.bin %> deploy"
11
+ },
12
+ {
13
+ "description": "Deploy the current directory to a named service",
14
+ "command": "<%= config.bin %> deploy --service my-app"
15
+ },
16
+ {
17
+ "description": "Deploy a project that lives somewhere else",
18
+ "command": "<%= config.bin %> deploy --path ./apps/api --service my-api"
19
+ },
20
+ {
21
+ "description": "Pin the target service in the project, so plain `deploy` always works",
22
+ "command": "echo '{\"service\": \"my-app\"}' > chabok.json && <%= config.bin %> deploy"
23
+ },
24
+ {
25
+ "description": "See exactly which files are excluded from the upload",
26
+ "command": "CHABOK_DEBUG=true <%= config.bin %> deploy -s my-app"
27
+ }
28
+ ],
7
29
  "flags": {
8
30
  "help": {
9
31
  "char": "h",
@@ -14,7 +36,7 @@
14
36
  },
15
37
  "path": {
16
38
  "char": "p",
17
- "description": "service path in your computer",
39
+ "description": "project directory to upload (defaults to the current directory)",
18
40
  "name": "path",
19
41
  "hasDynamicHelp": false,
20
42
  "multiple": false,
@@ -22,7 +44,7 @@
22
44
  },
23
45
  "service": {
24
46
  "char": "s",
25
- "description": "service name",
47
+ "description": "name of the service to deploy to",
26
48
  "name": "service",
27
49
  "hasDynamicHelp": false,
28
50
  "multiple": false,
@@ -47,7 +69,25 @@
47
69
  "login": {
48
70
  "aliases": [],
49
71
  "args": {},
50
- "description": "login to hub.chabokan.net account",
72
+ "description": "sign in to your hub.chabokan.net account",
73
+ "examples": [
74
+ {
75
+ "description": "Sign in interactively (prompts for email and password)",
76
+ "command": "<%= config.bin %> login"
77
+ },
78
+ {
79
+ "description": "Sign in with an API token — the right choice for CI",
80
+ "command": "<%= config.bin %> login --token <your-api-token>"
81
+ },
82
+ {
83
+ "description": "Pass the email up front and be prompted only for the password",
84
+ "command": "<%= config.bin %> login --email me@example.com"
85
+ },
86
+ {
87
+ "description": "Add a second account (both stay signed in; switch with `account use`)",
88
+ "command": "<%= config.bin %> login --email other@example.com"
89
+ }
90
+ ],
51
91
  "flags": {
52
92
  "help": {
53
93
  "char": "h",
@@ -57,8 +97,11 @@
57
97
  "type": "boolean"
58
98
  },
59
99
  "username": {
100
+ "aliases": [
101
+ "email"
102
+ ],
60
103
  "char": "u",
61
- "description": "your username",
104
+ "description": "your email address",
62
105
  "name": "username",
63
106
  "hasDynamicHelp": false,
64
107
  "multiple": false,
@@ -66,7 +109,7 @@
66
109
  },
67
110
  "password": {
68
111
  "char": "p",
69
- "description": "your password",
112
+ "description": "your password (prompted for if omitted)",
70
113
  "name": "password",
71
114
  "hasDynamicHelp": false,
72
115
  "multiple": false,
@@ -74,7 +117,7 @@
74
117
  },
75
118
  "token": {
76
119
  "char": "t",
77
- "description": "login with api token",
120
+ "description": "API token, for non-interactive sign-in",
78
121
  "name": "token",
79
122
  "hasDynamicHelp": false,
80
123
  "multiple": false,
@@ -96,10 +139,51 @@
96
139
  "login.js"
97
140
  ]
98
141
  },
142
+ "account:info": {
143
+ "aliases": [],
144
+ "args": {},
145
+ "description": "show information about the active account",
146
+ "examples": [
147
+ {
148
+ "description": "Show the active account's details",
149
+ "command": "<%= config.bin %> account info"
150
+ }
151
+ ],
152
+ "flags": {
153
+ "help": {
154
+ "char": "h",
155
+ "description": "Show CLI help.",
156
+ "name": "help",
157
+ "allowNo": false,
158
+ "type": "boolean"
159
+ }
160
+ },
161
+ "hasDynamicHelp": false,
162
+ "hiddenAliases": [],
163
+ "id": "account:info",
164
+ "pluginAlias": "@chabokan.net/cli",
165
+ "pluginName": "@chabokan.net/cli",
166
+ "pluginType": "core",
167
+ "strict": true,
168
+ "enableJsonFlag": false,
169
+ "isESM": true,
170
+ "relativePath": [
171
+ "dist",
172
+ "commands",
173
+ "account",
174
+ "info.js"
175
+ ]
176
+ },
99
177
  "account:list": {
100
178
  "aliases": [],
101
179
  "args": {},
102
- "description": "show accounts list",
180
+ "description": "list the accounts you are logged in to",
181
+ "examples": [
182
+ {
183
+ "description": "Show every logged-in account and which one is active",
184
+ "command": "<%= config.bin %> account list"
185
+ }
186
+ ],
103
187
  "flags": {
104
188
  "help": {
105
189
  "char": "h",
@@ -128,7 +212,13 @@
128
212
  "account:remove": {
129
213
  "aliases": [],
130
214
  "args": {},
131
- "description": "remove account from list",
215
+ "description": "sign out of an account and forget its stored token",
216
+ "examples": [
217
+ {
218
+ "description": "Pick the account to sign out of",
219
+ "command": "<%= config.bin %> account remove"
220
+ }
221
+ ],
132
222
  "flags": {
133
223
  "help": {
134
224
  "char": "h",
@@ -157,7 +247,17 @@
157
247
  "account:use": {
158
248
  "aliases": [],
159
249
  "args": {},
160
- "description": "switch your default user between logged in users",
250
+ "description": "switch the active account",
251
+ "examples": [
252
+ {
253
+ "description": "Pick the account to switch to from a list",
254
+ "command": "<%= config.bin %> account use"
255
+ },
256
+ {
257
+ "description": "Switch to a specific account without prompting",
258
+ "command": "<%= config.bin %> account use --user me@example.com"
259
+ }
260
+ ],
161
261
  "flags": {
162
262
  "help": {
163
263
  "char": "h",
@@ -168,7 +268,7 @@
168
268
  },
169
269
  "user": {
170
270
  "char": "u",
171
- "description": "default user",
271
+ "description": "email of the account to switch to",
172
272
  "name": "user",
173
273
  "hasDynamicHelp": false,
174
274
  "multiple": false,
@@ -191,10 +291,299 @@
191
291
  "use.js"
192
292
  ]
193
293
  },
294
+ "cloudserver:create": {
295
+ "aliases": [],
296
+ "args": {},
297
+ "description": "create a new cloud server (VPS) — walks through provider, location, plan, OS and wallet",
298
+ "examples": [
299
+ {
300
+ "description": "Create a cloud server, choosing every option interactively",
301
+ "command": "<%= config.bin %> cloudserver create"
302
+ },
303
+ {
304
+ "description": "Skip the hostname prompt",
305
+ "command": "<%= config.bin %> cloudserver create --hostname my-vps"
306
+ }
307
+ ],
308
+ "flags": {
309
+ "help": {
310
+ "char": "h",
311
+ "description": "Show CLI help.",
312
+ "name": "help",
313
+ "allowNo": false,
314
+ "type": "boolean"
315
+ },
316
+ "hostname": {
317
+ "description": "hostname for the new cloud server",
318
+ "name": "hostname",
319
+ "hasDynamicHelp": false,
320
+ "multiple": false,
321
+ "type": "option"
322
+ },
323
+ "wallet": {
324
+ "description": "name of the wallet to pay from",
325
+ "name": "wallet",
326
+ "hasDynamicHelp": false,
327
+ "multiple": false,
328
+ "type": "option"
329
+ }
330
+ },
331
+ "hasDynamicHelp": false,
332
+ "hiddenAliases": [],
333
+ "id": "cloudserver:create",
334
+ "pluginAlias": "@chabokan.net/cli",
335
+ "pluginName": "@chabokan.net/cli",
336
+ "pluginType": "core",
337
+ "strict": true,
338
+ "enableJsonFlag": false,
339
+ "isESM": true,
340
+ "relativePath": [
341
+ "dist",
342
+ "commands",
343
+ "cloudserver",
344
+ "create.js"
345
+ ]
346
+ },
347
+ "cloudserver:delete": {
348
+ "aliases": [],
349
+ "args": {},
350
+ "description": "permanently delete a cloud server",
351
+ "examples": [
352
+ {
353
+ "description": "Pick a cloud server from an interactive list, then confirm",
354
+ "command": "<%= config.bin %> cloudserver delete"
355
+ },
356
+ {
357
+ "description": "Delete a specific cloud server without a confirmation prompt",
358
+ "command": "<%= config.bin %> cloudserver delete --hostname my-vps --yes"
359
+ }
360
+ ],
361
+ "flags": {
362
+ "help": {
363
+ "char": "h",
364
+ "description": "Show CLI help.",
365
+ "name": "help",
366
+ "allowNo": false,
367
+ "type": "boolean"
368
+ },
369
+ "hostname": {
370
+ "description": "hostname of the cloud server to delete",
371
+ "name": "hostname",
372
+ "hasDynamicHelp": false,
373
+ "multiple": false,
374
+ "type": "option"
375
+ },
376
+ "yes": {
377
+ "char": "y",
378
+ "description": "skip the confirmation prompt",
379
+ "name": "yes",
380
+ "allowNo": false,
381
+ "type": "boolean"
382
+ }
383
+ },
384
+ "hasDynamicHelp": false,
385
+ "hiddenAliases": [],
386
+ "id": "cloudserver:delete",
387
+ "pluginAlias": "@chabokan.net/cli",
388
+ "pluginName": "@chabokan.net/cli",
389
+ "pluginType": "core",
390
+ "strict": true,
391
+ "enableJsonFlag": false,
392
+ "isESM": true,
393
+ "relativePath": [
394
+ "dist",
395
+ "commands",
396
+ "cloudserver",
397
+ "delete.js"
398
+ ]
399
+ },
400
+ "cloudserver:list": {
401
+ "aliases": [],
402
+ "args": {},
403
+ "description": "list the cloud servers (VPS) on your account",
404
+ "examples": [
405
+ {
406
+ "description": "List every cloud server on the active account",
407
+ "command": "<%= config.bin %> cloudserver list"
408
+ }
409
+ ],
410
+ "flags": {
411
+ "help": {
412
+ "char": "h",
413
+ "description": "Show CLI help.",
414
+ "name": "help",
415
+ "allowNo": false,
416
+ "type": "boolean"
417
+ }
418
+ },
419
+ "hasDynamicHelp": false,
420
+ "hiddenAliases": [],
421
+ "id": "cloudserver:list",
422
+ "pluginAlias": "@chabokan.net/cli",
423
+ "pluginName": "@chabokan.net/cli",
424
+ "pluginType": "core",
425
+ "strict": true,
426
+ "enableJsonFlag": false,
427
+ "isESM": true,
428
+ "relativePath": [
429
+ "dist",
430
+ "commands",
431
+ "cloudserver",
432
+ "list.js"
433
+ ]
434
+ },
435
+ "cloudserver:restart": {
436
+ "aliases": [],
437
+ "args": {},
438
+ "description": "restart a cloud server",
439
+ "examples": [
440
+ {
441
+ "description": "Pick a cloud server from an interactive list",
442
+ "command": "<%= config.bin %> cloudserver restart"
443
+ },
444
+ {
445
+ "description": "Restart a specific cloud server by hostname",
446
+ "command": "<%= config.bin %> cloudserver restart --hostname my-vps"
447
+ }
448
+ ],
449
+ "flags": {
450
+ "help": {
451
+ "char": "h",
452
+ "description": "Show CLI help.",
453
+ "name": "help",
454
+ "allowNo": false,
455
+ "type": "boolean"
456
+ },
457
+ "hostname": {
458
+ "description": "hostname of the cloud server to restart",
459
+ "name": "hostname",
460
+ "hasDynamicHelp": false,
461
+ "multiple": false,
462
+ "type": "option"
463
+ }
464
+ },
465
+ "hasDynamicHelp": false,
466
+ "hiddenAliases": [],
467
+ "id": "cloudserver:restart",
468
+ "pluginAlias": "@chabokan.net/cli",
469
+ "pluginName": "@chabokan.net/cli",
470
+ "pluginType": "core",
471
+ "strict": true,
472
+ "enableJsonFlag": false,
473
+ "isESM": true,
474
+ "relativePath": [
475
+ "dist",
476
+ "commands",
477
+ "cloudserver",
478
+ "restart.js"
479
+ ]
480
+ },
481
+ "cloudserver:start": {
482
+ "aliases": [],
483
+ "args": {},
484
+ "description": "turn on a cloud server",
485
+ "examples": [
486
+ {
487
+ "description": "Pick a cloud server from an interactive list",
488
+ "command": "<%= config.bin %> cloudserver start"
489
+ },
490
+ {
491
+ "description": "Turn on a specific cloud server by hostname",
492
+ "command": "<%= config.bin %> cloudserver start --hostname my-vps"
493
+ }
494
+ ],
495
+ "flags": {
496
+ "help": {
497
+ "char": "h",
498
+ "description": "Show CLI help.",
499
+ "name": "help",
500
+ "allowNo": false,
501
+ "type": "boolean"
502
+ },
503
+ "hostname": {
504
+ "description": "hostname of the cloud server to turn on",
505
+ "name": "hostname",
506
+ "hasDynamicHelp": false,
507
+ "multiple": false,
508
+ "type": "option"
509
+ }
510
+ },
511
+ "hasDynamicHelp": false,
512
+ "hiddenAliases": [],
513
+ "id": "cloudserver:start",
514
+ "pluginAlias": "@chabokan.net/cli",
515
+ "pluginName": "@chabokan.net/cli",
516
+ "pluginType": "core",
517
+ "strict": true,
518
+ "enableJsonFlag": false,
519
+ "isESM": true,
520
+ "relativePath": [
521
+ "dist",
522
+ "commands",
523
+ "cloudserver",
524
+ "start.js"
525
+ ]
526
+ },
527
+ "cloudserver:stop": {
528
+ "aliases": [],
529
+ "args": {},
530
+ "description": "turn off a cloud server",
531
+ "examples": [
532
+ {
533
+ "description": "Pick a cloud server from an interactive list",
534
+ "command": "<%= config.bin %> cloudserver stop"
535
+ },
536
+ {
537
+ "description": "Turn off a specific cloud server by hostname",
538
+ "command": "<%= config.bin %> cloudserver stop --hostname my-vps"
539
+ }
540
+ ],
541
+ "flags": {
542
+ "help": {
543
+ "char": "h",
544
+ "description": "Show CLI help.",
545
+ "name": "help",
546
+ "allowNo": false,
547
+ "type": "boolean"
548
+ },
549
+ "hostname": {
550
+ "description": "hostname of the cloud server to turn off",
551
+ "name": "hostname",
552
+ "hasDynamicHelp": false,
553
+ "multiple": false,
554
+ "type": "option"
555
+ }
556
+ },
557
+ "hasDynamicHelp": false,
558
+ "hiddenAliases": [],
559
+ "id": "cloudserver:stop",
560
+ "pluginAlias": "@chabokan.net/cli",
561
+ "pluginName": "@chabokan.net/cli",
562
+ "pluginType": "core",
563
+ "strict": true,
564
+ "enableJsonFlag": false,
565
+ "isESM": true,
566
+ "relativePath": [
567
+ "dist",
568
+ "commands",
569
+ "cloudserver",
570
+ "stop.js"
571
+ ]
572
+ },
194
573
  "service:list": {
195
574
  "aliases": [],
196
575
  "args": {},
197
- "description": "show account services list",
576
+ "description": "list the services on your account",
577
+ "examples": [
578
+ {
579
+ "description": "List every service on the active account",
580
+ "command": "<%= config.bin %> service list"
581
+ },
582
+ {
583
+ "description": "Switch account first, then list that account’s services",
584
+ "command": "<%= config.bin %> account use -u me@example.com && <%= config.bin %> service list"
585
+ }
586
+ ],
198
587
  "flags": {
199
588
  "help": {
200
589
  "char": "h",
@@ -223,7 +612,25 @@
223
612
  "service:logs": {
224
613
  "aliases": [],
225
614
  "args": {},
226
- "description": "read latest logs from service",
615
+ "description": "read the latest logs from a service",
616
+ "examples": [
617
+ {
618
+ "description": "Pick a service from an interactive list",
619
+ "command": "<%= config.bin %> service logs"
620
+ },
621
+ {
622
+ "description": "Read logs for a specific service",
623
+ "command": "<%= config.bin %> service logs --service my-app"
624
+ },
625
+ {
626
+ "description": "Search the logs for errors",
627
+ "command": "<%= config.bin %> service logs -s my-app | grep -i error"
628
+ },
629
+ {
630
+ "description": "Save the logs to a file",
631
+ "command": "<%= config.bin %> service logs -s my-app > my-app.log"
632
+ }
633
+ ],
227
634
  "flags": {
228
635
  "help": {
229
636
  "char": "h",
@@ -234,7 +641,7 @@
234
641
  },
235
642
  "service": {
236
643
  "char": "s",
237
- "description": "service name",
644
+ "description": "name of the service to read logs from",
238
645
  "name": "service",
239
646
  "hasDynamicHelp": false,
240
647
  "multiple": false,
@@ -260,7 +667,21 @@
260
667
  "service:resize": {
261
668
  "aliases": [],
262
669
  "args": {},
263
- "description": "resize a service",
670
+ "description": "change the RAM, CPU and disk allocated to a service",
671
+ "examples": [
672
+ {
673
+ "description": "Choose the service and every resource interactively",
674
+ "command": "<%= config.bin %> service resize"
675
+ },
676
+ {
677
+ "description": "Resize a service in one non-interactive command",
678
+ "command": "<%= config.bin %> service resize -s my-app --ram 2 --cpu 1 --disk 10"
679
+ },
680
+ {
681
+ "description": "Set only the RAM and pick the rest from the prompts",
682
+ "command": "<%= config.bin %> service resize -s my-app --ram 4"
683
+ }
684
+ ],
264
685
  "flags": {
265
686
  "help": {
266
687
  "char": "h",
@@ -271,7 +692,7 @@
271
692
  },
272
693
  "service": {
273
694
  "char": "s",
274
- "description": "service name",
695
+ "description": "name of the service to resize",
275
696
  "name": "service",
276
697
  "hasDynamicHelp": false,
277
698
  "multiple": false,
@@ -279,7 +700,7 @@
279
700
  },
280
701
  "ram": {
281
702
  "char": "r",
282
- "description": "RAM",
703
+ "description": "RAM in GB, in steps of 0.5 (e.g. 0.5, 1, 2)",
283
704
  "name": "ram",
284
705
  "hasDynamicHelp": false,
285
706
  "multiple": false,
@@ -287,7 +708,7 @@
287
708
  },
288
709
  "cpu": {
289
710
  "char": "c",
290
- "description": "CPU",
711
+ "description": "CPU cores, in steps of 0.5 (e.g. 0.5, 1, 2)",
291
712
  "name": "cpu",
292
713
  "hasDynamicHelp": false,
293
714
  "multiple": false,
@@ -295,7 +716,7 @@
295
716
  },
296
717
  "disk": {
297
718
  "char": "d",
298
- "description": "DISK",
719
+ "description": "disk in GB, in steps of 5 (e.g. 5, 10, 30)",
299
720
  "name": "disk",
300
721
  "hasDynamicHelp": false,
301
722
  "multiple": false,
@@ -322,6 +743,20 @@
322
743
  "aliases": [],
323
744
  "args": {},
324
745
  "description": "restart a service",
746
+ "examples": [
747
+ {
748
+ "description": "Pick a service from an interactive list",
749
+ "command": "<%= config.bin %> service restart"
750
+ },
751
+ {
752
+ "description": "Restart a specific service by name",
753
+ "command": "<%= config.bin %> service restart --service my-app"
754
+ },
755
+ {
756
+ "description": "Restart, then tail the logs to confirm it came back up",
757
+ "command": "<%= config.bin %> service restart -s my-app && <%= config.bin %> service logs -s my-app"
758
+ }
759
+ ],
325
760
  "flags": {
326
761
  "help": {
327
762
  "char": "h",
@@ -332,7 +767,7 @@
332
767
  },
333
768
  "service": {
334
769
  "char": "s",
335
- "description": "service name",
770
+ "description": "name of the service to restart",
336
771
  "name": "service",
337
772
  "hasDynamicHelp": false,
338
773
  "multiple": false,
@@ -358,7 +793,21 @@
358
793
  "service:start": {
359
794
  "aliases": [],
360
795
  "args": {},
361
- "description": "start a service",
796
+ "description": "start a stopped service",
797
+ "examples": [
798
+ {
799
+ "description": "Pick a service from an interactive list",
800
+ "command": "<%= config.bin %> service start"
801
+ },
802
+ {
803
+ "description": "Start a specific service by name",
804
+ "command": "<%= config.bin %> service start --service my-app"
805
+ },
806
+ {
807
+ "description": "Same, using the short flag",
808
+ "command": "<%= config.bin %> service start -s my-app"
809
+ }
810
+ ],
362
811
  "flags": {
363
812
  "help": {
364
813
  "char": "h",
@@ -369,7 +818,7 @@
369
818
  },
370
819
  "service": {
371
820
  "char": "s",
372
- "description": "service name",
821
+ "description": "name of the service to start",
373
822
  "name": "service",
374
823
  "hasDynamicHelp": false,
375
824
  "multiple": false,
@@ -395,7 +844,21 @@
395
844
  "service:stop": {
396
845
  "aliases": [],
397
846
  "args": {},
398
- "description": "stop a service",
847
+ "description": "stop a running service",
848
+ "examples": [
849
+ {
850
+ "description": "Pick a service from an interactive list",
851
+ "command": "<%= config.bin %> service stop"
852
+ },
853
+ {
854
+ "description": "Stop a specific service by name",
855
+ "command": "<%= config.bin %> service stop --service my-app"
856
+ },
857
+ {
858
+ "description": "Same, using the short flag",
859
+ "command": "<%= config.bin %> service stop -s my-app"
860
+ }
861
+ ],
399
862
  "flags": {
400
863
  "help": {
401
864
  "char": "h",
@@ -406,7 +869,7 @@
406
869
  },
407
870
  "service": {
408
871
  "char": "s",
409
- "description": "service name",
872
+ "description": "name of the service to stop",
410
873
  "name": "service",
411
874
  "hasDynamicHelp": false,
412
875
  "multiple": false,
@@ -428,7 +891,154 @@
428
891
  "service",
429
892
  "stop.js"
430
893
  ]
894
+ },
895
+ "wallet:list": {
896
+ "aliases": [],
897
+ "args": {},
898
+ "description": "list the wallets on your account",
899
+ "examples": [
900
+ {
901
+ "description": "Show every wallet and its balance",
902
+ "command": "<%= config.bin %> wallet list"
903
+ }
904
+ ],
905
+ "flags": {
906
+ "help": {
907
+ "char": "h",
908
+ "description": "Show CLI help.",
909
+ "name": "help",
910
+ "allowNo": false,
911
+ "type": "boolean"
912
+ }
913
+ },
914
+ "hasDynamicHelp": false,
915
+ "hiddenAliases": [],
916
+ "id": "wallet:list",
917
+ "pluginAlias": "@chabokan.net/cli",
918
+ "pluginName": "@chabokan.net/cli",
919
+ "pluginType": "core",
920
+ "strict": true,
921
+ "enableJsonFlag": false,
922
+ "isESM": true,
923
+ "relativePath": [
924
+ "dist",
925
+ "commands",
926
+ "wallet",
927
+ "list.js"
928
+ ]
929
+ },
930
+ "service:domain:add": {
931
+ "aliases": [],
932
+ "args": {},
933
+ "description": "connect a custom domain to a service",
934
+ "examples": [
935
+ {
936
+ "description": "Pick the service and enter the domain interactively",
937
+ "command": "<%= config.bin %> service domain add"
938
+ },
939
+ {
940
+ "description": "Connect a domain in one non-interactive command",
941
+ "command": "<%= config.bin %> service domain add -s my-app -d www.example.com"
942
+ }
943
+ ],
944
+ "flags": {
945
+ "help": {
946
+ "char": "h",
947
+ "description": "Show CLI help.",
948
+ "name": "help",
949
+ "allowNo": false,
950
+ "type": "boolean"
951
+ },
952
+ "service": {
953
+ "char": "s",
954
+ "description": "name of the service to connect the domain to",
955
+ "name": "service",
956
+ "hasDynamicHelp": false,
957
+ "multiple": false,
958
+ "type": "option"
959
+ },
960
+ "domain": {
961
+ "char": "d",
962
+ "description": "domain name to connect, e.g. www.example.com",
963
+ "name": "domain",
964
+ "hasDynamicHelp": false,
965
+ "multiple": false,
966
+ "type": "option"
967
+ }
968
+ },
969
+ "hasDynamicHelp": false,
970
+ "hiddenAliases": [],
971
+ "id": "service:domain:add",
972
+ "pluginAlias": "@chabokan.net/cli",
973
+ "pluginName": "@chabokan.net/cli",
974
+ "pluginType": "core",
975
+ "strict": true,
976
+ "enableJsonFlag": false,
977
+ "isESM": true,
978
+ "relativePath": [
979
+ "dist",
980
+ "commands",
981
+ "service",
982
+ "domain",
983
+ "add.js"
984
+ ]
985
+ },
986
+ "service:domain:remove": {
987
+ "aliases": [],
988
+ "args": {},
989
+ "description": "disconnect a custom domain from a service",
990
+ "examples": [
991
+ {
992
+ "description": "Pick the service and enter the domain interactively",
993
+ "command": "<%= config.bin %> service domain remove"
994
+ },
995
+ {
996
+ "description": "Disconnect a domain in one non-interactive command",
997
+ "command": "<%= config.bin %> service domain remove -s my-app -d www.example.com"
998
+ }
999
+ ],
1000
+ "flags": {
1001
+ "help": {
1002
+ "char": "h",
1003
+ "description": "Show CLI help.",
1004
+ "name": "help",
1005
+ "allowNo": false,
1006
+ "type": "boolean"
1007
+ },
1008
+ "service": {
1009
+ "char": "s",
1010
+ "description": "name of the service the domain is connected to",
1011
+ "name": "service",
1012
+ "hasDynamicHelp": false,
1013
+ "multiple": false,
1014
+ "type": "option"
1015
+ },
1016
+ "domain": {
1017
+ "char": "d",
1018
+ "description": "domain name to disconnect",
1019
+ "name": "domain",
1020
+ "hasDynamicHelp": false,
1021
+ "multiple": false,
1022
+ "type": "option"
1023
+ }
1024
+ },
1025
+ "hasDynamicHelp": false,
1026
+ "hiddenAliases": [],
1027
+ "id": "service:domain:remove",
1028
+ "pluginAlias": "@chabokan.net/cli",
1029
+ "pluginName": "@chabokan.net/cli",
1030
+ "pluginType": "core",
1031
+ "strict": true,
1032
+ "enableJsonFlag": false,
1033
+ "isESM": true,
1034
+ "relativePath": [
1035
+ "dist",
1036
+ "commands",
1037
+ "service",
1038
+ "domain",
1039
+ "remove.js"
1040
+ ]
431
1041
  }
432
1042
  },
433
- "version": "0.8.15"
1043
+ "version": "0.9.1"
434
1044
  }