@enspirit/emb 0.22.1 → 0.23.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.
- package/README.md +79 -105
- package/dist/src/cli/commands/components/shell.d.ts +1 -1
- package/dist/src/cli/commands/components/shell.js +8 -6
- package/dist/src/cli/commands/down.d.ts +4 -0
- package/dist/src/cli/commands/down.js +17 -12
- package/dist/src/cli/commands/logs/archive.d.ts +1 -1
- package/dist/src/cli/commands/logs/archive.js +12 -11
- package/dist/src/cli/commands/logs/index.d.ts +1 -1
- package/dist/src/cli/commands/logs/index.js +12 -12
- package/dist/src/cli/commands/restart.d.ts +1 -1
- package/dist/src/cli/commands/restart.js +10 -9
- package/dist/src/cli/commands/start.d.ts +1 -1
- package/dist/src/cli/commands/start.js +7 -10
- package/dist/src/cli/commands/stop.d.ts +4 -0
- package/dist/src/cli/commands/stop.js +17 -12
- package/dist/src/cli/commands/up.d.ts +1 -1
- package/dist/src/cli/commands/up.js +20 -19
- package/dist/src/docker/compose/client.d.ts +15 -1
- package/dist/src/docker/compose/client.js +32 -2
- package/dist/src/docker/compose/operations/ComposeDownOperation.d.ts +6 -6
- package/dist/src/docker/compose/operations/ComposeDownOperation.js +28 -9
- package/dist/src/docker/compose/operations/ComposeLogsArchiveOperation.d.ts +3 -3
- package/dist/src/docker/compose/operations/ComposeLogsArchiveOperation.js +12 -13
- package/dist/src/docker/compose/operations/ComposeStopOperation.d.ts +6 -6
- package/dist/src/docker/compose/operations/ComposeStopOperation.js +28 -9
- package/dist/src/docker/compose/operations/ComposeUpOperation.d.ts +1 -1
- package/dist/src/docker/compose/operations/ComposeUpOperation.js +4 -4
- package/oclif.manifest.json +97 -144
- package/package.json +1 -1
- package/dist/src/cli/commands/components/logs.d.ts +0 -14
- package/dist/src/cli/commands/components/logs.js +0 -44
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ $ npm install -g @enspirit/emb
|
|
|
14
14
|
$ emb COMMAND
|
|
15
15
|
running command...
|
|
16
16
|
$ emb (--version)
|
|
17
|
-
@enspirit/emb/0.
|
|
17
|
+
@enspirit/emb/0.23.0 darwin-arm64 node-v22.21.1
|
|
18
18
|
$ emb --help [COMMAND]
|
|
19
19
|
USAGE
|
|
20
20
|
$ emb COMMAND
|
|
@@ -26,12 +26,11 @@ USAGE
|
|
|
26
26
|
* [`emb autocomplete [SHELL]`](#emb-autocomplete-shell)
|
|
27
27
|
* [`emb clean`](#emb-clean)
|
|
28
28
|
* [`emb components`](#emb-components)
|
|
29
|
-
* [`emb components
|
|
30
|
-
* [`emb components shell COMPONENT`](#emb-components-shell-component)
|
|
29
|
+
* [`emb components shell SERVICE`](#emb-components-shell-service)
|
|
31
30
|
* [`emb config print`](#emb-config-print)
|
|
32
31
|
* [`emb containers`](#emb-containers)
|
|
33
32
|
* [`emb containers prune`](#emb-containers-prune)
|
|
34
|
-
* [`emb down`](#emb-down)
|
|
33
|
+
* [`emb down [SERVICE]`](#emb-down-service)
|
|
35
34
|
* [`emb help [COMMAND]`](#emb-help-command)
|
|
36
35
|
* [`emb images`](#emb-images)
|
|
37
36
|
* [`emb images delete`](#emb-images-delete)
|
|
@@ -41,22 +40,22 @@ USAGE
|
|
|
41
40
|
* [`emb kubernetes ps`](#emb-kubernetes-ps)
|
|
42
41
|
* [`emb kubernetes restart [DEPLOYMENT]`](#emb-kubernetes-restart-deployment)
|
|
43
42
|
* [`emb kubernetes shell COMPONENT`](#emb-kubernetes-shell-component)
|
|
44
|
-
* [`emb logs [
|
|
45
|
-
* [`emb logs archive [
|
|
43
|
+
* [`emb logs [SERVICE]`](#emb-logs-service)
|
|
44
|
+
* [`emb logs archive [SERVICE]`](#emb-logs-archive-service)
|
|
46
45
|
* [`emb ps`](#emb-ps)
|
|
47
46
|
* [`emb resources`](#emb-resources)
|
|
48
47
|
* [`emb resources build [COMPONENT]`](#emb-resources-build-component)
|
|
49
|
-
* [`emb restart [
|
|
48
|
+
* [`emb restart [SERVICE]`](#emb-restart-service)
|
|
50
49
|
* [`emb run TASK`](#emb-run-task)
|
|
51
50
|
* [`emb secrets`](#emb-secrets)
|
|
52
51
|
* [`emb secrets providers`](#emb-secrets-providers)
|
|
53
52
|
* [`emb secrets validate`](#emb-secrets-validate)
|
|
54
|
-
* [`emb shell
|
|
55
|
-
* [`emb start [
|
|
56
|
-
* [`emb stop`](#emb-stop)
|
|
53
|
+
* [`emb shell SERVICE`](#emb-shell-service)
|
|
54
|
+
* [`emb start [SERVICE]`](#emb-start-service)
|
|
55
|
+
* [`emb stop [SERVICE]`](#emb-stop-service)
|
|
57
56
|
* [`emb tasks`](#emb-tasks)
|
|
58
57
|
* [`emb tasks run TASK`](#emb-tasks-run-task)
|
|
59
|
-
* [`emb up [
|
|
58
|
+
* [`emb up [SERVICE]`](#emb-up-service)
|
|
60
59
|
* [`emb update [CHANNEL]`](#emb-update-channel)
|
|
61
60
|
|
|
62
61
|
## `emb autocomplete [SHELL]`
|
|
@@ -113,7 +112,7 @@ EXAMPLES
|
|
|
113
112
|
$ emb clean
|
|
114
113
|
```
|
|
115
114
|
|
|
116
|
-
_See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.
|
|
115
|
+
_See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/clean.ts)_
|
|
117
116
|
|
|
118
117
|
## `emb components`
|
|
119
118
|
|
|
@@ -138,49 +137,18 @@ EXAMPLES
|
|
|
138
137
|
$ emb components
|
|
139
138
|
```
|
|
140
139
|
|
|
141
|
-
_See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
140
|
+
_See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/components/index.ts)_
|
|
142
141
|
|
|
143
|
-
## `emb components
|
|
142
|
+
## `emb components shell SERVICE`
|
|
144
143
|
|
|
145
|
-
Get
|
|
144
|
+
Get a shell on a running service.
|
|
146
145
|
|
|
147
146
|
```
|
|
148
147
|
USAGE
|
|
149
|
-
$ emb components
|
|
148
|
+
$ emb components shell SERVICE [--verbose] [-C <value>] [-s <value>]
|
|
150
149
|
|
|
151
150
|
ARGUMENTS
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
FLAGS
|
|
155
|
-
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
156
|
-
-f, --[no-]follow Follow log output
|
|
157
|
-
--[no-]verbose
|
|
158
|
-
|
|
159
|
-
DESCRIPTION
|
|
160
|
-
Get components logs.
|
|
161
|
-
|
|
162
|
-
EXAMPLES
|
|
163
|
-
$ emb components logs
|
|
164
|
-
|
|
165
|
-
$ emb components logs backend
|
|
166
|
-
|
|
167
|
-
$ emb components logs backend frontend
|
|
168
|
-
|
|
169
|
-
$ emb components logs --no-follow backend
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
_See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.22.1/src/commands/components/logs.ts)_
|
|
173
|
-
|
|
174
|
-
## `emb components shell COMPONENT`
|
|
175
|
-
|
|
176
|
-
Get a shell on a running component.
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
USAGE
|
|
180
|
-
$ emb components shell COMPONENT [--verbose] [-C <value>] [-s <value>]
|
|
181
|
-
|
|
182
|
-
ARGUMENTS
|
|
183
|
-
COMPONENT The component you want to get a shell on
|
|
151
|
+
SERVICE The service you want to get a shell on
|
|
184
152
|
|
|
185
153
|
FLAGS
|
|
186
154
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -188,7 +156,7 @@ FLAGS
|
|
|
188
156
|
--[no-]verbose
|
|
189
157
|
|
|
190
158
|
DESCRIPTION
|
|
191
|
-
Get a shell on a running
|
|
159
|
+
Get a shell on a running service.
|
|
192
160
|
|
|
193
161
|
ALIASES
|
|
194
162
|
$ emb shell
|
|
@@ -197,7 +165,7 @@ EXAMPLES
|
|
|
197
165
|
$ emb components shell
|
|
198
166
|
```
|
|
199
167
|
|
|
200
|
-
_See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.
|
|
168
|
+
_See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/components/shell.ts)_
|
|
201
169
|
|
|
202
170
|
## `emb config print`
|
|
203
171
|
|
|
@@ -222,7 +190,7 @@ EXAMPLES
|
|
|
222
190
|
$ emb config print
|
|
223
191
|
```
|
|
224
192
|
|
|
225
|
-
_See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.
|
|
193
|
+
_See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/config/print.ts)_
|
|
226
194
|
|
|
227
195
|
## `emb containers`
|
|
228
196
|
|
|
@@ -247,7 +215,7 @@ EXAMPLES
|
|
|
247
215
|
$ emb containers
|
|
248
216
|
```
|
|
249
217
|
|
|
250
|
-
_See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
218
|
+
_See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/containers/index.ts)_
|
|
251
219
|
|
|
252
220
|
## `emb containers prune`
|
|
253
221
|
|
|
@@ -271,15 +239,18 @@ EXAMPLES
|
|
|
271
239
|
$ emb containers prune
|
|
272
240
|
```
|
|
273
241
|
|
|
274
|
-
_See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.
|
|
242
|
+
_See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/containers/prune.ts)_
|
|
275
243
|
|
|
276
|
-
## `emb down`
|
|
244
|
+
## `emb down [SERVICE]`
|
|
277
245
|
|
|
278
246
|
Stop the whole project.
|
|
279
247
|
|
|
280
248
|
```
|
|
281
249
|
USAGE
|
|
282
|
-
$ emb down [--json] [--verbose] [-C <value>] [--flavor <value>]
|
|
250
|
+
$ emb down [SERVICE...] [--json] [--verbose] [-C <value>] [--flavor <value>]
|
|
251
|
+
|
|
252
|
+
ARGUMENTS
|
|
253
|
+
[SERVICE...] The service(s) to stop and remove
|
|
283
254
|
|
|
284
255
|
FLAGS
|
|
285
256
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -296,7 +267,7 @@ EXAMPLES
|
|
|
296
267
|
$ emb down
|
|
297
268
|
```
|
|
298
269
|
|
|
299
|
-
_See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.
|
|
270
|
+
_See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/down.ts)_
|
|
300
271
|
|
|
301
272
|
## `emb help [COMMAND]`
|
|
302
273
|
|
|
@@ -342,7 +313,7 @@ EXAMPLES
|
|
|
342
313
|
$ emb images
|
|
343
314
|
```
|
|
344
315
|
|
|
345
|
-
_See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
316
|
+
_See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/images/index.ts)_
|
|
346
317
|
|
|
347
318
|
## `emb images delete`
|
|
348
319
|
|
|
@@ -367,7 +338,7 @@ EXAMPLES
|
|
|
367
338
|
$ emb images delete
|
|
368
339
|
```
|
|
369
340
|
|
|
370
|
-
_See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.
|
|
341
|
+
_See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/images/delete.ts)_
|
|
371
342
|
|
|
372
343
|
## `emb images prune`
|
|
373
344
|
|
|
@@ -392,7 +363,7 @@ EXAMPLES
|
|
|
392
363
|
$ emb images prune
|
|
393
364
|
```
|
|
394
365
|
|
|
395
|
-
_See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.
|
|
366
|
+
_See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/images/prune.ts)_
|
|
396
367
|
|
|
397
368
|
## `emb images push`
|
|
398
369
|
|
|
@@ -421,7 +392,7 @@ EXAMPLES
|
|
|
421
392
|
$ emb images push --registry my.registry.io --retag newtag
|
|
422
393
|
```
|
|
423
394
|
|
|
424
|
-
_See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.
|
|
395
|
+
_See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/images/push.ts)_
|
|
425
396
|
|
|
426
397
|
## `emb kubernetes logs COMPONENT`
|
|
427
398
|
|
|
@@ -447,7 +418,7 @@ EXAMPLES
|
|
|
447
418
|
$ emb kubernetes logs
|
|
448
419
|
```
|
|
449
420
|
|
|
450
|
-
_See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.
|
|
421
|
+
_See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/kubernetes/logs.ts)_
|
|
451
422
|
|
|
452
423
|
## `emb kubernetes ps`
|
|
453
424
|
|
|
@@ -470,7 +441,7 @@ EXAMPLES
|
|
|
470
441
|
$ emb kubernetes ps
|
|
471
442
|
```
|
|
472
443
|
|
|
473
|
-
_See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.
|
|
444
|
+
_See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/kubernetes/ps.ts)_
|
|
474
445
|
|
|
475
446
|
## `emb kubernetes restart [DEPLOYMENT]`
|
|
476
447
|
|
|
@@ -495,7 +466,7 @@ EXAMPLES
|
|
|
495
466
|
$ emb kubernetes restart
|
|
496
467
|
```
|
|
497
468
|
|
|
498
|
-
_See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.
|
|
469
|
+
_See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/kubernetes/restart.ts)_
|
|
499
470
|
|
|
500
471
|
## `emb kubernetes shell COMPONENT`
|
|
501
472
|
|
|
@@ -524,18 +495,18 @@ EXAMPLES
|
|
|
524
495
|
$ emb kubernetes shell
|
|
525
496
|
```
|
|
526
497
|
|
|
527
|
-
_See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.
|
|
498
|
+
_See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/kubernetes/shell.ts)_
|
|
528
499
|
|
|
529
|
-
## `emb logs [
|
|
500
|
+
## `emb logs [SERVICE]`
|
|
530
501
|
|
|
531
|
-
Get
|
|
502
|
+
Get service logs.
|
|
532
503
|
|
|
533
504
|
```
|
|
534
505
|
USAGE
|
|
535
|
-
$ emb logs [
|
|
506
|
+
$ emb logs [SERVICE...] [--verbose] [-C <value>] [-f]
|
|
536
507
|
|
|
537
508
|
ARGUMENTS
|
|
538
|
-
[
|
|
509
|
+
[SERVICE...] The service(s) you want to see the logs of (all if omitted)
|
|
539
510
|
|
|
540
511
|
FLAGS
|
|
541
512
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -543,7 +514,7 @@ FLAGS
|
|
|
543
514
|
--[no-]verbose
|
|
544
515
|
|
|
545
516
|
DESCRIPTION
|
|
546
|
-
Get
|
|
517
|
+
Get service logs.
|
|
547
518
|
|
|
548
519
|
EXAMPLES
|
|
549
520
|
$ emb logs
|
|
@@ -555,18 +526,18 @@ EXAMPLES
|
|
|
555
526
|
$ emb logs --no-follow backend
|
|
556
527
|
```
|
|
557
528
|
|
|
558
|
-
_See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
529
|
+
_See code: [src/commands/logs/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/logs/index.ts)_
|
|
559
530
|
|
|
560
|
-
## `emb logs archive [
|
|
531
|
+
## `emb logs archive [SERVICE]`
|
|
561
532
|
|
|
562
|
-
Archive docker compose logs to files (one file per
|
|
533
|
+
Archive docker compose logs to files (one file per service).
|
|
563
534
|
|
|
564
535
|
```
|
|
565
536
|
USAGE
|
|
566
|
-
$ emb logs archive [
|
|
537
|
+
$ emb logs archive [SERVICE...] [--json] [--verbose] [-C <value>] [-t] [--tail <value>] [-o <value>]
|
|
567
538
|
|
|
568
539
|
ARGUMENTS
|
|
569
|
-
[
|
|
540
|
+
[SERVICE...] The service(s) to archive logs for (all if omitted)
|
|
570
541
|
|
|
571
542
|
FLAGS
|
|
572
543
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -579,7 +550,7 @@ GLOBAL FLAGS
|
|
|
579
550
|
--json Format output as json.
|
|
580
551
|
|
|
581
552
|
DESCRIPTION
|
|
582
|
-
Archive docker compose logs to files (one file per
|
|
553
|
+
Archive docker compose logs to files (one file per service).
|
|
583
554
|
|
|
584
555
|
EXAMPLES
|
|
585
556
|
$ emb logs archive
|
|
@@ -591,7 +562,7 @@ EXAMPLES
|
|
|
591
562
|
$ emb logs archive --tail 1000
|
|
592
563
|
```
|
|
593
564
|
|
|
594
|
-
_See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.
|
|
565
|
+
_See code: [src/commands/logs/archive.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/logs/archive.ts)_
|
|
595
566
|
|
|
596
567
|
## `emb ps`
|
|
597
568
|
|
|
@@ -614,7 +585,7 @@ EXAMPLES
|
|
|
614
585
|
$ emb ps
|
|
615
586
|
```
|
|
616
587
|
|
|
617
|
-
_See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.
|
|
588
|
+
_See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/ps.ts)_
|
|
618
589
|
|
|
619
590
|
## `emb resources`
|
|
620
591
|
|
|
@@ -639,7 +610,7 @@ EXAMPLES
|
|
|
639
610
|
$ emb resources
|
|
640
611
|
```
|
|
641
612
|
|
|
642
|
-
_See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
613
|
+
_See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/resources/index.ts)_
|
|
643
614
|
|
|
644
615
|
## `emb resources build [COMPONENT]`
|
|
645
616
|
|
|
@@ -669,22 +640,22 @@ EXAMPLES
|
|
|
669
640
|
$ emb resources build build --flavor development
|
|
670
641
|
```
|
|
671
642
|
|
|
672
|
-
_See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.
|
|
643
|
+
_See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/resources/build.ts)_
|
|
673
644
|
|
|
674
|
-
## `emb restart [
|
|
645
|
+
## `emb restart [SERVICE]`
|
|
675
646
|
|
|
676
647
|
Restart the whole project.
|
|
677
648
|
|
|
678
649
|
```
|
|
679
650
|
USAGE
|
|
680
|
-
$ emb restart [
|
|
651
|
+
$ emb restart [SERVICE...] [--json] [--verbose] [-C <value>] [-f]
|
|
681
652
|
|
|
682
653
|
ARGUMENTS
|
|
683
|
-
[
|
|
654
|
+
[SERVICE...] The service(s) to restart
|
|
684
655
|
|
|
685
656
|
FLAGS
|
|
686
657
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
687
|
-
-f, --no-deps Don't restart
|
|
658
|
+
-f, --no-deps Don't restart dependent services
|
|
688
659
|
--[no-]verbose
|
|
689
660
|
|
|
690
661
|
GLOBAL FLAGS
|
|
@@ -697,7 +668,7 @@ EXAMPLES
|
|
|
697
668
|
$ emb restart
|
|
698
669
|
```
|
|
699
670
|
|
|
700
|
-
_See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.
|
|
671
|
+
_See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/restart.ts)_
|
|
701
672
|
|
|
702
673
|
## `emb run TASK`
|
|
703
674
|
|
|
@@ -755,7 +726,7 @@ EXAMPLES
|
|
|
755
726
|
$ emb secrets --json
|
|
756
727
|
```
|
|
757
728
|
|
|
758
|
-
_See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
729
|
+
_See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/secrets/index.ts)_
|
|
759
730
|
|
|
760
731
|
## `emb secrets providers`
|
|
761
732
|
|
|
@@ -780,7 +751,7 @@ EXAMPLES
|
|
|
780
751
|
$ emb secrets providers
|
|
781
752
|
```
|
|
782
753
|
|
|
783
|
-
_See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.
|
|
754
|
+
_See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/secrets/providers.ts)_
|
|
784
755
|
|
|
785
756
|
## `emb secrets validate`
|
|
786
757
|
|
|
@@ -810,18 +781,18 @@ EXAMPLES
|
|
|
810
781
|
$ emb secrets validate --json
|
|
811
782
|
```
|
|
812
783
|
|
|
813
|
-
_See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.
|
|
784
|
+
_See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/secrets/validate.ts)_
|
|
814
785
|
|
|
815
|
-
## `emb shell
|
|
786
|
+
## `emb shell SERVICE`
|
|
816
787
|
|
|
817
|
-
Get a shell on a running
|
|
788
|
+
Get a shell on a running service.
|
|
818
789
|
|
|
819
790
|
```
|
|
820
791
|
USAGE
|
|
821
|
-
$ emb shell
|
|
792
|
+
$ emb shell SERVICE [--verbose] [-C <value>] [-s <value>]
|
|
822
793
|
|
|
823
794
|
ARGUMENTS
|
|
824
|
-
|
|
795
|
+
SERVICE The service you want to get a shell on
|
|
825
796
|
|
|
826
797
|
FLAGS
|
|
827
798
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -829,7 +800,7 @@ FLAGS
|
|
|
829
800
|
--[no-]verbose
|
|
830
801
|
|
|
831
802
|
DESCRIPTION
|
|
832
|
-
Get a shell on a running
|
|
803
|
+
Get a shell on a running service.
|
|
833
804
|
|
|
834
805
|
ALIASES
|
|
835
806
|
$ emb shell
|
|
@@ -838,16 +809,16 @@ EXAMPLES
|
|
|
838
809
|
$ emb shell
|
|
839
810
|
```
|
|
840
811
|
|
|
841
|
-
## `emb start [
|
|
812
|
+
## `emb start [SERVICE]`
|
|
842
813
|
|
|
843
814
|
Starts the whole project.
|
|
844
815
|
|
|
845
816
|
```
|
|
846
817
|
USAGE
|
|
847
|
-
$ emb start [
|
|
818
|
+
$ emb start [SERVICE...] [--json] [--verbose] [-C <value>]
|
|
848
819
|
|
|
849
820
|
ARGUMENTS
|
|
850
|
-
[
|
|
821
|
+
[SERVICE...] The service(s) to start
|
|
851
822
|
|
|
852
823
|
FLAGS
|
|
853
824
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -863,15 +834,18 @@ EXAMPLES
|
|
|
863
834
|
$ emb start
|
|
864
835
|
```
|
|
865
836
|
|
|
866
|
-
_See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.
|
|
837
|
+
_See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/start.ts)_
|
|
867
838
|
|
|
868
|
-
## `emb stop`
|
|
839
|
+
## `emb stop [SERVICE]`
|
|
869
840
|
|
|
870
841
|
Stop the whole project.
|
|
871
842
|
|
|
872
843
|
```
|
|
873
844
|
USAGE
|
|
874
|
-
$ emb stop [--json] [--verbose] [-C <value>] [--flavor <value>]
|
|
845
|
+
$ emb stop [SERVICE...] [--json] [--verbose] [-C <value>] [--flavor <value>]
|
|
846
|
+
|
|
847
|
+
ARGUMENTS
|
|
848
|
+
[SERVICE...] The service(s) to stop
|
|
875
849
|
|
|
876
850
|
FLAGS
|
|
877
851
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -888,7 +862,7 @@ EXAMPLES
|
|
|
888
862
|
$ emb stop
|
|
889
863
|
```
|
|
890
864
|
|
|
891
|
-
_See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.
|
|
865
|
+
_See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/stop.ts)_
|
|
892
866
|
|
|
893
867
|
## `emb tasks`
|
|
894
868
|
|
|
@@ -912,7 +886,7 @@ EXAMPLES
|
|
|
912
886
|
$ emb tasks
|
|
913
887
|
```
|
|
914
888
|
|
|
915
|
-
_See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.
|
|
889
|
+
_See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/tasks/index.ts)_
|
|
916
890
|
|
|
917
891
|
## `emb tasks run TASK`
|
|
918
892
|
|
|
@@ -945,18 +919,18 @@ EXAMPLES
|
|
|
945
919
|
$ emb tasks run
|
|
946
920
|
```
|
|
947
921
|
|
|
948
|
-
_See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.
|
|
922
|
+
_See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/tasks/run.ts)_
|
|
949
923
|
|
|
950
|
-
## `emb up [
|
|
924
|
+
## `emb up [SERVICE]`
|
|
951
925
|
|
|
952
926
|
Start the whole project.
|
|
953
927
|
|
|
954
928
|
```
|
|
955
929
|
USAGE
|
|
956
|
-
$ emb up [
|
|
930
|
+
$ emb up [SERVICE...] [--json] [--verbose] [-C <value>] [--flavor <value>] [-f]
|
|
957
931
|
|
|
958
932
|
ARGUMENTS
|
|
959
|
-
[
|
|
933
|
+
[SERVICE...] The service(s) to build and start
|
|
960
934
|
|
|
961
935
|
FLAGS
|
|
962
936
|
-C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
|
|
@@ -974,7 +948,7 @@ EXAMPLES
|
|
|
974
948
|
$ emb up
|
|
975
949
|
```
|
|
976
950
|
|
|
977
|
-
_See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.
|
|
951
|
+
_See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.23.0/src/commands/up.ts)_
|
|
978
952
|
|
|
979
953
|
## `emb update [CHANNEL]`
|
|
980
954
|
|
|
@@ -8,7 +8,7 @@ export default class ComponentShellCommand extends BaseCommand {
|
|
|
8
8
|
shell: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
9
|
};
|
|
10
10
|
static args: {
|
|
11
|
-
|
|
11
|
+
service: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
12
12
|
};
|
|
13
13
|
run(): Promise<void>;
|
|
14
14
|
}
|
|
@@ -4,7 +4,7 @@ import { ComposeExecShellOperation } from '../../../docker/index.js';
|
|
|
4
4
|
import { ShellExitError } from '../../../errors.js';
|
|
5
5
|
export default class ComponentShellCommand extends BaseCommand {
|
|
6
6
|
static aliases = ['shell'];
|
|
7
|
-
static description = 'Get a shell on a running
|
|
7
|
+
static description = 'Get a shell on a running service.';
|
|
8
8
|
static enableJsonFlag = false;
|
|
9
9
|
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
10
10
|
static flags = {
|
|
@@ -16,18 +16,20 @@ export default class ComponentShellCommand extends BaseCommand {
|
|
|
16
16
|
}),
|
|
17
17
|
};
|
|
18
18
|
static args = {
|
|
19
|
-
|
|
20
|
-
name: '
|
|
21
|
-
description: 'The
|
|
19
|
+
service: Args.string({
|
|
20
|
+
name: 'service',
|
|
21
|
+
description: 'The service you want to get a shell on',
|
|
22
22
|
required: true,
|
|
23
23
|
}),
|
|
24
24
|
};
|
|
25
25
|
async run() {
|
|
26
26
|
const { flags, args } = await this.parse(ComponentShellCommand);
|
|
27
|
-
const { monorepo } =
|
|
27
|
+
const { monorepo, compose } = getContext();
|
|
28
|
+
// Validate service exists in docker-compose.yml
|
|
29
|
+
await compose.validateService(args.service);
|
|
28
30
|
try {
|
|
29
31
|
await monorepo.run(new ComposeExecShellOperation(), {
|
|
30
|
-
service: args.
|
|
32
|
+
service: args.service,
|
|
31
33
|
shell: flags.shell,
|
|
32
34
|
});
|
|
33
35
|
}
|
|
@@ -4,5 +4,9 @@ export default class DownCommand extends FlavoredCommand<typeof DownCommand> {
|
|
|
4
4
|
static enableJsonFlag: boolean;
|
|
5
5
|
static examples: string[];
|
|
6
6
|
static flags: {};
|
|
7
|
+
static args: {
|
|
8
|
+
service: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
9
|
+
};
|
|
10
|
+
static strict: boolean;
|
|
7
11
|
run(): Promise<void>;
|
|
8
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
2
|
import { FlavoredCommand, getContext } from '../index.js';
|
|
3
3
|
import { ComposeDownOperation } from '../../docker/index.js';
|
|
4
4
|
export default class DownCommand extends FlavoredCommand {
|
|
@@ -6,17 +6,22 @@ export default class DownCommand extends FlavoredCommand {
|
|
|
6
6
|
static enableJsonFlag = true;
|
|
7
7
|
static examples = ['<%= config.bin %> <%= command.id %>'];
|
|
8
8
|
static flags = {};
|
|
9
|
+
static args = {
|
|
10
|
+
service: Args.string({
|
|
11
|
+
name: 'service',
|
|
12
|
+
description: 'The service(s) to stop and remove',
|
|
13
|
+
}),
|
|
14
|
+
};
|
|
15
|
+
static strict = false;
|
|
9
16
|
async run() {
|
|
10
|
-
const {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
]);
|
|
20
|
-
await runner.run();
|
|
17
|
+
const { argv } = await this.parse(DownCommand);
|
|
18
|
+
const { monorepo, compose } = getContext();
|
|
19
|
+
let services;
|
|
20
|
+
if (argv.length > 0) {
|
|
21
|
+
services = await compose.validateServices(argv);
|
|
22
|
+
}
|
|
23
|
+
await monorepo.run(new ComposeDownOperation(), {
|
|
24
|
+
services,
|
|
25
|
+
});
|
|
21
26
|
}
|
|
22
27
|
}
|
|
@@ -10,7 +10,7 @@ export default class LogsArchive extends BaseCommand {
|
|
|
10
10
|
output: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
11
|
};
|
|
12
12
|
static args: {
|
|
13
|
-
|
|
13
|
+
service: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
|
|
14
14
|
};
|
|
15
15
|
run(): Promise<void>;
|
|
16
16
|
}
|
|
@@ -2,7 +2,7 @@ import { Args, Flags } from '@oclif/core';
|
|
|
2
2
|
import { BaseCommand, getContext } from '../../index.js';
|
|
3
3
|
import { ComposeLogsArchiveOperation } from '../../../docker/index.js';
|
|
4
4
|
export default class LogsArchive extends BaseCommand {
|
|
5
|
-
static description = 'Archive docker compose logs to files (one file per
|
|
5
|
+
static description = 'Archive docker compose logs to files (one file per service).';
|
|
6
6
|
static enableJsonFlag = true;
|
|
7
7
|
static examples = [
|
|
8
8
|
'<%= config.bin %> <%= command.id %>',
|
|
@@ -26,22 +26,23 @@ export default class LogsArchive extends BaseCommand {
|
|
|
26
26
|
}),
|
|
27
27
|
};
|
|
28
28
|
static args = {
|
|
29
|
-
|
|
30
|
-
name: '
|
|
31
|
-
description: 'The
|
|
29
|
+
service: Args.string({
|
|
30
|
+
name: 'service',
|
|
31
|
+
description: 'The service(s) to archive logs for (all if omitted)',
|
|
32
32
|
required: false,
|
|
33
33
|
}),
|
|
34
34
|
};
|
|
35
35
|
async run() {
|
|
36
36
|
const { flags, argv } = await this.parse(LogsArchive);
|
|
37
|
-
const { monorepo } =
|
|
38
|
-
const
|
|
39
|
-
// Validate that all specified
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
const { monorepo, compose } = getContext();
|
|
38
|
+
const serviceNames = argv;
|
|
39
|
+
// Validate that all specified services exist in docker-compose.yml
|
|
40
|
+
let services;
|
|
41
|
+
if (serviceNames.length > 0) {
|
|
42
|
+
services = await compose.validateServices(serviceNames);
|
|
42
43
|
}
|
|
43
44
|
const result = await monorepo.run(new ComposeLogsArchiveOperation(), {
|
|
44
|
-
|
|
45
|
+
services,
|
|
45
46
|
outputDir: flags.output,
|
|
46
47
|
timestamps: flags.timestamps,
|
|
47
48
|
tail: flags.tail,
|
|
@@ -52,7 +53,7 @@ export default class LogsArchive extends BaseCommand {
|
|
|
52
53
|
else {
|
|
53
54
|
this.log('Archived logs:');
|
|
54
55
|
for (const file of result) {
|
|
55
|
-
this.log(` ${file.
|
|
56
|
+
this.log(` ${file.service}: ${file.path}`);
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
}
|