@chabokan.net/cli 0.8.15 → 0.9.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 (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,334 @@
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
+ },
573
+ "wallet:list": {
574
+ "aliases": [],
575
+ "args": {},
576
+ "description": "list the wallets on your account",
577
+ "examples": [
578
+ {
579
+ "description": "Show every wallet and its balance",
580
+ "command": "<%= config.bin %> wallet list"
581
+ }
582
+ ],
583
+ "flags": {
584
+ "help": {
585
+ "char": "h",
586
+ "description": "Show CLI help.",
587
+ "name": "help",
588
+ "allowNo": false,
589
+ "type": "boolean"
590
+ }
591
+ },
592
+ "hasDynamicHelp": false,
593
+ "hiddenAliases": [],
594
+ "id": "wallet:list",
595
+ "pluginAlias": "@chabokan.net/cli",
596
+ "pluginName": "@chabokan.net/cli",
597
+ "pluginType": "core",
598
+ "strict": true,
599
+ "enableJsonFlag": false,
600
+ "isESM": true,
601
+ "relativePath": [
602
+ "dist",
603
+ "commands",
604
+ "wallet",
605
+ "list.js"
606
+ ]
607
+ },
194
608
  "service:list": {
195
609
  "aliases": [],
196
610
  "args": {},
197
- "description": "show account services list",
611
+ "description": "list the services on your account",
612
+ "examples": [
613
+ {
614
+ "description": "List every service on the active account",
615
+ "command": "<%= config.bin %> service list"
616
+ },
617
+ {
618
+ "description": "Switch account first, then list that account’s services",
619
+ "command": "<%= config.bin %> account use -u me@example.com && <%= config.bin %> service list"
620
+ }
621
+ ],
198
622
  "flags": {
199
623
  "help": {
200
624
  "char": "h",
@@ -223,7 +647,25 @@
223
647
  "service:logs": {
224
648
  "aliases": [],
225
649
  "args": {},
226
- "description": "read latest logs from service",
650
+ "description": "read the latest logs from a service",
651
+ "examples": [
652
+ {
653
+ "description": "Pick a service from an interactive list",
654
+ "command": "<%= config.bin %> service logs"
655
+ },
656
+ {
657
+ "description": "Read logs for a specific service",
658
+ "command": "<%= config.bin %> service logs --service my-app"
659
+ },
660
+ {
661
+ "description": "Search the logs for errors",
662
+ "command": "<%= config.bin %> service logs -s my-app | grep -i error"
663
+ },
664
+ {
665
+ "description": "Save the logs to a file",
666
+ "command": "<%= config.bin %> service logs -s my-app > my-app.log"
667
+ }
668
+ ],
227
669
  "flags": {
228
670
  "help": {
229
671
  "char": "h",
@@ -234,7 +676,7 @@
234
676
  },
235
677
  "service": {
236
678
  "char": "s",
237
- "description": "service name",
679
+ "description": "name of the service to read logs from",
238
680
  "name": "service",
239
681
  "hasDynamicHelp": false,
240
682
  "multiple": false,
@@ -260,7 +702,21 @@
260
702
  "service:resize": {
261
703
  "aliases": [],
262
704
  "args": {},
263
- "description": "resize a service",
705
+ "description": "change the RAM, CPU and disk allocated to a service",
706
+ "examples": [
707
+ {
708
+ "description": "Choose the service and every resource interactively",
709
+ "command": "<%= config.bin %> service resize"
710
+ },
711
+ {
712
+ "description": "Resize a service in one non-interactive command",
713
+ "command": "<%= config.bin %> service resize -s my-app --ram 2 --cpu 1 --disk 10"
714
+ },
715
+ {
716
+ "description": "Set only the RAM and pick the rest from the prompts",
717
+ "command": "<%= config.bin %> service resize -s my-app --ram 4"
718
+ }
719
+ ],
264
720
  "flags": {
265
721
  "help": {
266
722
  "char": "h",
@@ -271,7 +727,7 @@
271
727
  },
272
728
  "service": {
273
729
  "char": "s",
274
- "description": "service name",
730
+ "description": "name of the service to resize",
275
731
  "name": "service",
276
732
  "hasDynamicHelp": false,
277
733
  "multiple": false,
@@ -279,7 +735,7 @@
279
735
  },
280
736
  "ram": {
281
737
  "char": "r",
282
- "description": "RAM",
738
+ "description": "RAM in GB, in steps of 0.5 (e.g. 0.5, 1, 2)",
283
739
  "name": "ram",
284
740
  "hasDynamicHelp": false,
285
741
  "multiple": false,
@@ -287,7 +743,7 @@
287
743
  },
288
744
  "cpu": {
289
745
  "char": "c",
290
- "description": "CPU",
746
+ "description": "CPU cores, in steps of 0.5 (e.g. 0.5, 1, 2)",
291
747
  "name": "cpu",
292
748
  "hasDynamicHelp": false,
293
749
  "multiple": false,
@@ -295,7 +751,7 @@
295
751
  },
296
752
  "disk": {
297
753
  "char": "d",
298
- "description": "DISK",
754
+ "description": "disk in GB, in steps of 5 (e.g. 5, 10, 30)",
299
755
  "name": "disk",
300
756
  "hasDynamicHelp": false,
301
757
  "multiple": false,
@@ -322,6 +778,20 @@
322
778
  "aliases": [],
323
779
  "args": {},
324
780
  "description": "restart a service",
781
+ "examples": [
782
+ {
783
+ "description": "Pick a service from an interactive list",
784
+ "command": "<%= config.bin %> service restart"
785
+ },
786
+ {
787
+ "description": "Restart a specific service by name",
788
+ "command": "<%= config.bin %> service restart --service my-app"
789
+ },
790
+ {
791
+ "description": "Restart, then tail the logs to confirm it came back up",
792
+ "command": "<%= config.bin %> service restart -s my-app && <%= config.bin %> service logs -s my-app"
793
+ }
794
+ ],
325
795
  "flags": {
326
796
  "help": {
327
797
  "char": "h",
@@ -332,7 +802,7 @@
332
802
  },
333
803
  "service": {
334
804
  "char": "s",
335
- "description": "service name",
805
+ "description": "name of the service to restart",
336
806
  "name": "service",
337
807
  "hasDynamicHelp": false,
338
808
  "multiple": false,
@@ -358,7 +828,21 @@
358
828
  "service:start": {
359
829
  "aliases": [],
360
830
  "args": {},
361
- "description": "start a service",
831
+ "description": "start a stopped service",
832
+ "examples": [
833
+ {
834
+ "description": "Pick a service from an interactive list",
835
+ "command": "<%= config.bin %> service start"
836
+ },
837
+ {
838
+ "description": "Start a specific service by name",
839
+ "command": "<%= config.bin %> service start --service my-app"
840
+ },
841
+ {
842
+ "description": "Same, using the short flag",
843
+ "command": "<%= config.bin %> service start -s my-app"
844
+ }
845
+ ],
362
846
  "flags": {
363
847
  "help": {
364
848
  "char": "h",
@@ -369,7 +853,7 @@
369
853
  },
370
854
  "service": {
371
855
  "char": "s",
372
- "description": "service name",
856
+ "description": "name of the service to start",
373
857
  "name": "service",
374
858
  "hasDynamicHelp": false,
375
859
  "multiple": false,
@@ -395,7 +879,21 @@
395
879
  "service:stop": {
396
880
  "aliases": [],
397
881
  "args": {},
398
- "description": "stop a service",
882
+ "description": "stop a running service",
883
+ "examples": [
884
+ {
885
+ "description": "Pick a service from an interactive list",
886
+ "command": "<%= config.bin %> service stop"
887
+ },
888
+ {
889
+ "description": "Stop a specific service by name",
890
+ "command": "<%= config.bin %> service stop --service my-app"
891
+ },
892
+ {
893
+ "description": "Same, using the short flag",
894
+ "command": "<%= config.bin %> service stop -s my-app"
895
+ }
896
+ ],
399
897
  "flags": {
400
898
  "help": {
401
899
  "char": "h",
@@ -406,7 +904,7 @@
406
904
  },
407
905
  "service": {
408
906
  "char": "s",
409
- "description": "service name",
907
+ "description": "name of the service to stop",
410
908
  "name": "service",
411
909
  "hasDynamicHelp": false,
412
910
  "multiple": false,
@@ -428,7 +926,119 @@
428
926
  "service",
429
927
  "stop.js"
430
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.0"
434
1044
  }