@enspirit/emb 0.15.0 → 0.17.5

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 (57) hide show
  1. package/README.md +218 -43
  2. package/bin/release +122 -0
  3. package/dist/src/cli/abstract/BaseCommand.d.ts +1 -0
  4. package/dist/src/cli/abstract/BaseCommand.js +23 -4
  5. package/dist/src/cli/abstract/FlavouredCommand.d.ts +1 -0
  6. package/dist/src/cli/abstract/KubernetesCommand.d.ts +1 -0
  7. package/dist/src/cli/commands/components/logs.d.ts +2 -1
  8. package/dist/src/cli/commands/components/logs.js +21 -24
  9. package/dist/src/cli/commands/secrets/index.d.ts +14 -0
  10. package/dist/src/cli/commands/secrets/index.js +71 -0
  11. package/dist/src/cli/commands/secrets/providers.d.ts +12 -0
  12. package/dist/src/cli/commands/secrets/providers.js +50 -0
  13. package/dist/src/cli/commands/secrets/validate.d.ts +18 -0
  14. package/dist/src/cli/commands/secrets/validate.js +145 -0
  15. package/dist/src/cli/commands/tasks/run.js +6 -1
  16. package/dist/src/cli/hooks/init.js +7 -1
  17. package/dist/src/config/index.d.ts +10 -1
  18. package/dist/src/config/index.js +28 -3
  19. package/dist/src/config/schema.d.ts +7 -4
  20. package/dist/src/config/schema.json +173 -9
  21. package/dist/src/context.d.ts +9 -0
  22. package/dist/src/context.js +19 -0
  23. package/dist/src/docker/compose/operations/ComposeLogsOperation.d.ts +21 -0
  24. package/dist/src/docker/compose/operations/ComposeLogsOperation.js +85 -0
  25. package/dist/src/docker/compose/operations/index.d.ts +1 -0
  26. package/dist/src/docker/compose/operations/index.js +1 -0
  27. package/dist/src/index.d.ts +1 -0
  28. package/dist/src/index.js +1 -0
  29. package/dist/src/monorepo/monorepo.js +13 -5
  30. package/dist/src/monorepo/operations/shell/ExecuteLocalCommandOperation.js +40 -10
  31. package/dist/src/monorepo/operations/tasks/RunTasksOperation.d.ts +1 -1
  32. package/dist/src/monorepo/operations/tasks/RunTasksOperation.js +1 -1
  33. package/dist/src/monorepo/plugins/VaultPlugin.d.ts +46 -0
  34. package/dist/src/monorepo/plugins/VaultPlugin.js +91 -0
  35. package/dist/src/monorepo/plugins/index.d.ts +1 -0
  36. package/dist/src/monorepo/plugins/index.js +3 -0
  37. package/dist/src/secrets/SecretDiscovery.d.ts +46 -0
  38. package/dist/src/secrets/SecretDiscovery.js +82 -0
  39. package/dist/src/secrets/SecretManager.d.ts +52 -0
  40. package/dist/src/secrets/SecretManager.js +75 -0
  41. package/dist/src/secrets/SecretProvider.d.ts +45 -0
  42. package/dist/src/secrets/SecretProvider.js +38 -0
  43. package/dist/src/secrets/index.d.ts +3 -0
  44. package/dist/src/secrets/index.js +3 -0
  45. package/dist/src/secrets/providers/VaultOidcHelper.d.ts +39 -0
  46. package/dist/src/secrets/providers/VaultOidcHelper.js +226 -0
  47. package/dist/src/secrets/providers/VaultProvider.d.ts +74 -0
  48. package/dist/src/secrets/providers/VaultProvider.js +266 -0
  49. package/dist/src/secrets/providers/VaultTokenCache.d.ts +60 -0
  50. package/dist/src/secrets/providers/VaultTokenCache.js +188 -0
  51. package/dist/src/secrets/providers/index.d.ts +2 -0
  52. package/dist/src/secrets/providers/index.js +2 -0
  53. package/dist/src/types.d.ts +2 -0
  54. package/dist/src/utils/TemplateExpander.d.ts +13 -1
  55. package/dist/src/utils/TemplateExpander.js +68 -15
  56. package/oclif.manifest.json +578 -173
  57. package/package.json +12 -5
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.15.0 darwin-arm64 node-v22.21.1
17
+ @enspirit/emb/0.17.5 darwin-arm64 node-v22.21.1
18
18
  $ emb --help [COMMAND]
19
19
  USAGE
20
20
  $ emb COMMAND
@@ -26,7 +26,7 @@ USAGE
26
26
  * [`emb autocomplete [SHELL]`](#emb-autocomplete-shell)
27
27
  * [`emb clean`](#emb-clean)
28
28
  * [`emb components`](#emb-components)
29
- * [`emb components logs COMPONENT`](#emb-components-logs-component)
29
+ * [`emb components logs [COMPONENT]`](#emb-components-logs-component)
30
30
  * [`emb components shell COMPONENT`](#emb-components-shell-component)
31
31
  * [`emb config print`](#emb-config-print)
32
32
  * [`emb containers`](#emb-containers)
@@ -41,12 +41,15 @@ USAGE
41
41
  * [`emb kubernetes ps`](#emb-kubernetes-ps)
42
42
  * [`emb kubernetes restart [DEPLOYMENT]`](#emb-kubernetes-restart-deployment)
43
43
  * [`emb kubernetes shell COMPONENT`](#emb-kubernetes-shell-component)
44
- * [`emb logs COMPONENT`](#emb-logs-component)
44
+ * [`emb logs [COMPONENT]`](#emb-logs-component)
45
45
  * [`emb ps`](#emb-ps)
46
46
  * [`emb resources`](#emb-resources)
47
47
  * [`emb resources build [COMPONENT]`](#emb-resources-build-component)
48
48
  * [`emb restart [COMPONENT]`](#emb-restart-component)
49
49
  * [`emb run TASK`](#emb-run-task)
50
+ * [`emb secrets`](#emb-secrets)
51
+ * [`emb secrets providers`](#emb-secrets-providers)
52
+ * [`emb secrets validate`](#emb-secrets-validate)
50
53
  * [`emb shell COMPONENT`](#emb-shell-component)
51
54
  * [`emb start [COMPONENT]`](#emb-start-component)
52
55
  * [`emb stop`](#emb-stop)
@@ -92,9 +95,10 @@ Clean the project.
92
95
 
93
96
  ```
94
97
  USAGE
95
- $ emb clean [--json] [--verbose] [-f]
98
+ $ emb clean [--json] [--verbose] [-C <value>] [-f]
96
99
 
97
100
  FLAGS
101
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
98
102
  -f, --force Force the deletion of containers & images
99
103
  --[no-]verbose
100
104
 
@@ -108,16 +112,19 @@ EXAMPLES
108
112
  $ emb clean
109
113
  ```
110
114
 
115
+ _See code: [src/commands/clean.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/clean.ts)_
116
+
111
117
  ## `emb components`
112
118
 
113
119
  List components.
114
120
 
115
121
  ```
116
122
  USAGE
117
- $ emb components [--json] [--verbose] [--flavor <value>]
123
+ $ emb components [--json] [--verbose] [-C <value>] [--flavor <value>]
118
124
 
119
125
  FLAGS
120
- --flavor=<value> Specify the flavor to use.
126
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
127
+ --flavor=<value> Specify the flavor to use.
121
128
  --[no-]verbose
122
129
 
123
130
  GLOBAL FLAGS
@@ -130,18 +137,21 @@ EXAMPLES
130
137
  $ emb components
131
138
  ```
132
139
 
133
- ## `emb components logs COMPONENT`
140
+ _See code: [src/commands/components/index.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/components/index.ts)_
141
+
142
+ ## `emb components logs [COMPONENT]`
134
143
 
135
144
  Get components logs.
136
145
 
137
146
  ```
138
147
  USAGE
139
- $ emb components logs COMPONENT [--verbose] [-f]
148
+ $ emb components logs [COMPONENT...] [--verbose] [-C <value>] [-f]
140
149
 
141
150
  ARGUMENTS
142
- COMPONENT The component you want to see the logs of
151
+ [COMPONENT...] The component(s) you want to see the logs of (all if omitted)
143
152
 
144
153
  FLAGS
154
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
145
155
  -f, --[no-]follow Follow log output
146
156
  --[no-]verbose
147
157
 
@@ -153,20 +163,29 @@ ALIASES
153
163
 
154
164
  EXAMPLES
155
165
  $ emb components logs
166
+
167
+ $ emb components logs backend
168
+
169
+ $ emb components logs backend frontend
170
+
171
+ $ emb components logs --no-follow backend
156
172
  ```
157
173
 
174
+ _See code: [src/commands/components/logs.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/components/logs.ts)_
175
+
158
176
  ## `emb components shell COMPONENT`
159
177
 
160
178
  Get a shell on a running component.
161
179
 
162
180
  ```
163
181
  USAGE
164
- $ emb components shell COMPONENT [--verbose] [-s <value>]
182
+ $ emb components shell COMPONENT [--verbose] [-C <value>] [-s <value>]
165
183
 
166
184
  ARGUMENTS
167
185
  COMPONENT The component you want to get a shell on
168
186
 
169
187
  FLAGS
188
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
170
189
  -s, --shell=<value> [default: bash] The shell to run
171
190
  --[no-]verbose
172
191
 
@@ -180,16 +199,19 @@ EXAMPLES
180
199
  $ emb components shell
181
200
  ```
182
201
 
202
+ _See code: [src/commands/components/shell.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/components/shell.ts)_
203
+
183
204
  ## `emb config print`
184
205
 
185
206
  Print the current config.
186
207
 
187
208
  ```
188
209
  USAGE
189
- $ emb config print [--json] [--verbose] [--flavor <value>]
210
+ $ emb config print [--json] [--verbose] [-C <value>] [--flavor <value>]
190
211
 
191
212
  FLAGS
192
- --flavor=<value> Specify the flavor to use.
213
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
214
+ --flavor=<value> Specify the flavor to use.
193
215
  --[no-]verbose
194
216
 
195
217
  GLOBAL FLAGS
@@ -202,15 +224,18 @@ EXAMPLES
202
224
  $ emb config print
203
225
  ```
204
226
 
227
+ _See code: [src/commands/config/print.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/config/print.ts)_
228
+
205
229
  ## `emb containers`
206
230
 
207
231
  List docker containers.
208
232
 
209
233
  ```
210
234
  USAGE
211
- $ emb containers [--json] [--verbose] [-a]
235
+ $ emb containers [--json] [--verbose] [-C <value>] [-a]
212
236
 
213
237
  FLAGS
238
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
214
239
  -a, --all Retun all containers. By default, only running containers are shown
215
240
  --[no-]verbose
216
241
 
@@ -224,15 +249,18 @@ EXAMPLES
224
249
  $ emb containers
225
250
  ```
226
251
 
252
+ _See code: [src/commands/containers/index.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/containers/index.ts)_
253
+
227
254
  ## `emb containers prune`
228
255
 
229
256
  Prune containers.
230
257
 
231
258
  ```
232
259
  USAGE
233
- $ emb containers prune [--json] [--verbose]
260
+ $ emb containers prune [--json] [--verbose] [-C <value>]
234
261
 
235
262
  FLAGS
263
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
236
264
  --[no-]verbose
237
265
 
238
266
  GLOBAL FLAGS
@@ -245,16 +273,19 @@ EXAMPLES
245
273
  $ emb containers prune
246
274
  ```
247
275
 
276
+ _See code: [src/commands/containers/prune.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/containers/prune.ts)_
277
+
248
278
  ## `emb down`
249
279
 
250
280
  Stop the whole project.
251
281
 
252
282
  ```
253
283
  USAGE
254
- $ emb down [--json] [--verbose] [--flavor <value>]
284
+ $ emb down [--json] [--verbose] [-C <value>] [--flavor <value>]
255
285
 
256
286
  FLAGS
257
- --flavor=<value> Specify the flavor to use.
287
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
288
+ --flavor=<value> Specify the flavor to use.
258
289
  --[no-]verbose
259
290
 
260
291
  GLOBAL FLAGS
@@ -267,6 +298,8 @@ EXAMPLES
267
298
  $ emb down
268
299
  ```
269
300
 
301
+ _See code: [src/commands/down.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/down.ts)_
302
+
270
303
  ## `emb help [COMMAND]`
271
304
 
272
305
  Display help for emb.
@@ -293,9 +326,10 @@ List docker images.
293
326
 
294
327
  ```
295
328
  USAGE
296
- $ emb images [--json] [--verbose] [--flavor <value>] [-a]
329
+ $ emb images [--json] [--verbose] [-C <value>] [--flavor <value>] [-a]
297
330
 
298
331
  FLAGS
332
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
299
333
  -a, --all Show all images. Only images from a final layer (no children) are shown by default.
300
334
  --flavor=<value> Specify the flavor to use.
301
335
  --[no-]verbose
@@ -310,15 +344,18 @@ EXAMPLES
310
344
  $ emb images
311
345
  ```
312
346
 
347
+ _See code: [src/commands/images/index.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/images/index.ts)_
348
+
313
349
  ## `emb images delete`
314
350
 
315
351
  Delete project images.
316
352
 
317
353
  ```
318
354
  USAGE
319
- $ emb images delete [--json] [--verbose] [-f]
355
+ $ emb images delete [--json] [--verbose] [-C <value>] [-f]
320
356
 
321
357
  FLAGS
358
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
322
359
  -f, --force Remove the image even if it is being used by stopped containers or has other tags
323
360
  --[no-]verbose
324
361
 
@@ -332,15 +369,18 @@ EXAMPLES
332
369
  $ emb images delete
333
370
  ```
334
371
 
372
+ _See code: [src/commands/images/delete.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/images/delete.ts)_
373
+
335
374
  ## `emb images prune`
336
375
 
337
376
  Prune project images.
338
377
 
339
378
  ```
340
379
  USAGE
341
- $ emb images prune [--json] [--verbose] [-a]
380
+ $ emb images prune [--json] [--verbose] [-C <value>] [-a]
342
381
 
343
382
  FLAGS
383
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
344
384
  -a, --all Prune all images. When set to true all images will be pruned, not only dangling ones
345
385
  --[no-]verbose
346
386
 
@@ -354,18 +394,21 @@ EXAMPLES
354
394
  $ emb images prune
355
395
  ```
356
396
 
397
+ _See code: [src/commands/images/prune.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/images/prune.ts)_
398
+
357
399
  ## `emb images push`
358
400
 
359
401
  Push docker images.
360
402
 
361
403
  ```
362
404
  USAGE
363
- $ emb images push [--json] [--verbose] [--flavor <value>] [--registry <value>] [--retag <value>]
405
+ $ emb images push [--json] [--verbose] [-C <value>] [--flavor <value>] [--registry <value>] [--retag <value>]
364
406
 
365
407
  FLAGS
366
- --flavor=<value> Specify the flavor to use.
367
- --registry=<value> Override the registry to push to
368
- --retag=<value> Override the original tag to push to a new tag
408
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
409
+ --flavor=<value> Specify the flavor to use.
410
+ --registry=<value> Override the registry to push to
411
+ --retag=<value> Override the original tag to push to a new tag
369
412
  --[no-]verbose
370
413
 
371
414
  GLOBAL FLAGS
@@ -380,18 +423,21 @@ EXAMPLES
380
423
  $ emb images push --registry my.registry.io --retag newtag
381
424
  ```
382
425
 
426
+ _See code: [src/commands/images/push.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/images/push.ts)_
427
+
383
428
  ## `emb kubernetes logs COMPONENT`
384
429
 
385
430
  Follow kubernetes logs.
386
431
 
387
432
  ```
388
433
  USAGE
389
- $ emb kubernetes logs COMPONENT -n <value> [--verbose] [-f]
434
+ $ emb kubernetes logs COMPONENT -n <value> [--verbose] [-C <value>] [-f]
390
435
 
391
436
  ARGUMENTS
392
437
  COMPONENT The component you want to see the logs of
393
438
 
394
439
  FLAGS
440
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
395
441
  -f, --[no-]follow Follow log output
396
442
  -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
397
443
  --[no-]verbose
@@ -406,15 +452,18 @@ EXAMPLES
406
452
  $ emb kubernetes logs
407
453
  ```
408
454
 
455
+ _See code: [src/commands/kubernetes/logs.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/kubernetes/logs.ts)_
456
+
409
457
  ## `emb kubernetes ps`
410
458
 
411
459
  Show running pods.
412
460
 
413
461
  ```
414
462
  USAGE
415
- $ emb kubernetes ps -n <value> [--verbose] [--watch]
463
+ $ emb kubernetes ps -n <value> [--verbose] [-C <value>] [--watch]
416
464
 
417
465
  FLAGS
466
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
418
467
  -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
419
468
  --[no-]verbose
420
469
  --[no-]watch
@@ -426,18 +475,21 @@ EXAMPLES
426
475
  $ emb kubernetes ps
427
476
  ```
428
477
 
478
+ _See code: [src/commands/kubernetes/ps.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/kubernetes/ps.ts)_
479
+
429
480
  ## `emb kubernetes restart [DEPLOYMENT]`
430
481
 
431
482
  Restart pods of an instance.
432
483
 
433
484
  ```
434
485
  USAGE
435
- $ emb kubernetes restart [DEPLOYMENT...] -n <value> [--verbose]
486
+ $ emb kubernetes restart [DEPLOYMENT...] -n <value> [--verbose] [-C <value>]
436
487
 
437
488
  ARGUMENTS
438
489
  [DEPLOYMENT...] The deployment(s) to restart
439
490
 
440
491
  FLAGS
492
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
441
493
  -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
442
494
  --[no-]verbose
443
495
 
@@ -448,18 +500,21 @@ EXAMPLES
448
500
  $ emb kubernetes restart
449
501
  ```
450
502
 
503
+ _See code: [src/commands/kubernetes/restart.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/kubernetes/restart.ts)_
504
+
451
505
  ## `emb kubernetes shell COMPONENT`
452
506
 
453
507
  Get a shell on a deployed component.
454
508
 
455
509
  ```
456
510
  USAGE
457
- $ emb kubernetes shell COMPONENT -n <value> [--verbose] [-s <value>]
511
+ $ emb kubernetes shell COMPONENT -n <value> [--verbose] [-C <value>] [-s <value>]
458
512
 
459
513
  ARGUMENTS
460
514
  COMPONENT The component you want to get a shell on
461
515
 
462
516
  FLAGS
517
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
463
518
  -n, --namespace=<value> (required) [env: K8S_NAMESPACE] The Kubernetes namespace to target
464
519
  -s, --shell=<value> [default: bash] The shell to run
465
520
  --[no-]verbose
@@ -474,18 +529,21 @@ EXAMPLES
474
529
  $ emb kubernetes shell
475
530
  ```
476
531
 
477
- ## `emb logs COMPONENT`
532
+ _See code: [src/commands/kubernetes/shell.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/kubernetes/shell.ts)_
533
+
534
+ ## `emb logs [COMPONENT]`
478
535
 
479
536
  Get components logs.
480
537
 
481
538
  ```
482
539
  USAGE
483
- $ emb logs COMPONENT [--verbose] [-f]
540
+ $ emb logs [COMPONENT...] [--verbose] [-C <value>] [-f]
484
541
 
485
542
  ARGUMENTS
486
- COMPONENT The component you want to see the logs of
543
+ [COMPONENT...] The component(s) you want to see the logs of (all if omitted)
487
544
 
488
545
  FLAGS
546
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
489
547
  -f, --[no-]follow Follow log output
490
548
  --[no-]verbose
491
549
 
@@ -497,6 +555,12 @@ ALIASES
497
555
 
498
556
  EXAMPLES
499
557
  $ emb logs
558
+
559
+ $ emb logs backend
560
+
561
+ $ emb logs backend frontend
562
+
563
+ $ emb logs --no-follow backend
500
564
  ```
501
565
 
502
566
  ## `emb ps`
@@ -505,9 +569,10 @@ Lists the containers running in the project.
505
569
 
506
570
  ```
507
571
  USAGE
508
- $ emb ps [--verbose] [--flavor <value>] [-a]
572
+ $ emb ps [--verbose] [-C <value>] [--flavor <value>] [-a]
509
573
 
510
574
  FLAGS
575
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
511
576
  -a, --all Show all stopped containers
512
577
  --flavor=<value> Specify the flavor to use.
513
578
  --[no-]verbose
@@ -519,16 +584,19 @@ EXAMPLES
519
584
  $ emb ps
520
585
  ```
521
586
 
587
+ _See code: [src/commands/ps.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/ps.ts)_
588
+
522
589
  ## `emb resources`
523
590
 
524
591
  List resources.
525
592
 
526
593
  ```
527
594
  USAGE
528
- $ emb resources [--json] [--verbose] [--flavor <value>]
595
+ $ emb resources [--json] [--verbose] [-C <value>] [--flavor <value>]
529
596
 
530
597
  FLAGS
531
- --flavor=<value> Specify the flavor to use.
598
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
599
+ --flavor=<value> Specify the flavor to use.
532
600
  --[no-]verbose
533
601
 
534
602
  GLOBAL FLAGS
@@ -541,18 +609,21 @@ EXAMPLES
541
609
  $ emb resources
542
610
  ```
543
611
 
612
+ _See code: [src/commands/resources/index.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/resources/index.ts)_
613
+
544
614
  ## `emb resources build [COMPONENT]`
545
615
 
546
616
  Build the resources of the monorepo
547
617
 
548
618
  ```
549
619
  USAGE
550
- $ emb resources build [COMPONENT...] [--json] [--verbose] [--flavor <value>] [--dry-run] [-f]
620
+ $ emb resources build [COMPONENT...] [--json] [--verbose] [-C <value>] [--flavor <value>] [--dry-run] [-f]
551
621
 
552
622
  ARGUMENTS
553
623
  [COMPONENT...] List of resources to build (defaults to all)
554
624
 
555
625
  FLAGS
626
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
556
627
  -f, --force Bypass the cache and force the build
557
628
  --dry-run Do not build the resources but only produce build meta information
558
629
  --flavor=<value> Specify the flavor to use.
@@ -568,18 +639,21 @@ EXAMPLES
568
639
  $ emb resources build build --flavor development
569
640
  ```
570
641
 
642
+ _See code: [src/commands/resources/build.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/resources/build.ts)_
643
+
571
644
  ## `emb restart [COMPONENT]`
572
645
 
573
646
  Restart the whole project.
574
647
 
575
648
  ```
576
649
  USAGE
577
- $ emb restart [COMPONENT...] [--json] [--verbose] [-f]
650
+ $ emb restart [COMPONENT...] [--json] [--verbose] [-C <value>] [-f]
578
651
 
579
652
  ARGUMENTS
580
653
  [COMPONENT...] The component(s) to restart
581
654
 
582
655
  FLAGS
656
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
583
657
  -f, --no-deps Don't restart depdendent components
584
658
  --[no-]verbose
585
659
 
@@ -593,18 +667,21 @@ EXAMPLES
593
667
  $ emb restart
594
668
  ```
595
669
 
670
+ _See code: [src/commands/restart.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/restart.ts)_
671
+
596
672
  ## `emb run TASK`
597
673
 
598
674
  Run tasks.
599
675
 
600
676
  ```
601
677
  USAGE
602
- $ emb run TASK... [--json] [--verbose] [-x container|local] [-a]
678
+ $ emb run TASK... [--json] [--verbose] [-C <value>] [-x container|local] [-a]
603
679
 
604
680
  ARGUMENTS
605
681
  TASK... List of tasks to run. You can provide either ids or names (eg: component:task or task)
606
682
 
607
683
  FLAGS
684
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
608
685
  -a, --all-matching Run all tasks matching (when multiple matches)
609
686
  -x, --executor=<option> Where to run the task. (experimental!)
610
687
  <options: container|local>
@@ -623,18 +700,101 @@ EXAMPLES
623
700
  $ emb run
624
701
  ```
625
702
 
703
+ ## `emb secrets`
704
+
705
+ List all secret references in the configuration.
706
+
707
+ ```
708
+ USAGE
709
+ $ emb secrets [--json] [--verbose] [-C <value>] [--flavor <value>]
710
+
711
+ FLAGS
712
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
713
+ --flavor=<value> Specify the flavor to use.
714
+ --[no-]verbose
715
+
716
+ GLOBAL FLAGS
717
+ --json Format output as json.
718
+
719
+ DESCRIPTION
720
+ List all secret references in the configuration.
721
+
722
+ EXAMPLES
723
+ $ emb secrets
724
+
725
+ $ emb secrets --json
726
+ ```
727
+
728
+ _See code: [src/commands/secrets/index.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/secrets/index.ts)_
729
+
730
+ ## `emb secrets providers`
731
+
732
+ Show configured secret providers and their status.
733
+
734
+ ```
735
+ USAGE
736
+ $ emb secrets providers [--json] [--verbose] [-C <value>] [--flavor <value>]
737
+
738
+ FLAGS
739
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
740
+ --flavor=<value> Specify the flavor to use.
741
+ --[no-]verbose
742
+
743
+ GLOBAL FLAGS
744
+ --json Format output as json.
745
+
746
+ DESCRIPTION
747
+ Show configured secret providers and their status.
748
+
749
+ EXAMPLES
750
+ $ emb secrets providers
751
+ ```
752
+
753
+ _See code: [src/commands/secrets/providers.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/secrets/providers.ts)_
754
+
755
+ ## `emb secrets validate`
756
+
757
+ Validate that all secret references can be resolved (without showing values).
758
+
759
+ ```
760
+ USAGE
761
+ $ emb secrets validate [--json] [--verbose] [-C <value>] [--flavor <value>] [--fail-fast]
762
+
763
+ FLAGS
764
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
765
+ --fail-fast Stop on first validation error
766
+ --flavor=<value> Specify the flavor to use.
767
+ --[no-]verbose
768
+
769
+ GLOBAL FLAGS
770
+ --json Format output as json.
771
+
772
+ DESCRIPTION
773
+ Validate that all secret references can be resolved (without showing values).
774
+
775
+ EXAMPLES
776
+ $ emb secrets validate
777
+
778
+ $ emb secrets validate --fail-fast
779
+
780
+ $ emb secrets validate --json
781
+ ```
782
+
783
+ _See code: [src/commands/secrets/validate.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/secrets/validate.ts)_
784
+
626
785
  ## `emb shell COMPONENT`
627
786
 
628
787
  Get a shell on a running component.
629
788
 
630
789
  ```
631
790
  USAGE
632
- $ emb shell COMPONENT [--verbose] [-s <value>]
791
+ $ emb shell COMPONENT [--verbose] [-C <value>] [-s <value>]
633
792
 
634
793
  ARGUMENTS
635
794
  COMPONENT The component you want to get a shell on
636
795
 
637
796
  FLAGS
797
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
638
798
  -s, --shell=<value> [default: bash] The shell to run
639
799
  --[no-]verbose
640
800
 
@@ -654,12 +814,13 @@ Starts the whole project.
654
814
 
655
815
  ```
656
816
  USAGE
657
- $ emb start [COMPONENT...] [--json] [--verbose]
817
+ $ emb start [COMPONENT...] [--json] [--verbose] [-C <value>]
658
818
 
659
819
  ARGUMENTS
660
820
  [COMPONENT...] The component(s) to start
661
821
 
662
822
  FLAGS
823
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
663
824
  --[no-]verbose
664
825
 
665
826
  GLOBAL FLAGS
@@ -672,16 +833,19 @@ EXAMPLES
672
833
  $ emb start
673
834
  ```
674
835
 
836
+ _See code: [src/commands/start.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/start.ts)_
837
+
675
838
  ## `emb stop`
676
839
 
677
840
  Stop the whole project.
678
841
 
679
842
  ```
680
843
  USAGE
681
- $ emb stop [--json] [--verbose] [--flavor <value>]
844
+ $ emb stop [--json] [--verbose] [-C <value>] [--flavor <value>]
682
845
 
683
846
  FLAGS
684
- --flavor=<value> Specify the flavor to use.
847
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
848
+ --flavor=<value> Specify the flavor to use.
685
849
  --[no-]verbose
686
850
 
687
851
  GLOBAL FLAGS
@@ -694,15 +858,18 @@ EXAMPLES
694
858
  $ emb stop
695
859
  ```
696
860
 
861
+ _See code: [src/commands/stop.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/stop.ts)_
862
+
697
863
  ## `emb tasks`
698
864
 
699
865
  List tasks.
700
866
 
701
867
  ```
702
868
  USAGE
703
- $ emb tasks [--json] [--verbose]
869
+ $ emb tasks [--json] [--verbose] [-C <value>]
704
870
 
705
871
  FLAGS
872
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
706
873
  --[no-]verbose
707
874
 
708
875
  GLOBAL FLAGS
@@ -715,18 +882,21 @@ EXAMPLES
715
882
  $ emb tasks
716
883
  ```
717
884
 
885
+ _See code: [src/commands/tasks/index.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/tasks/index.ts)_
886
+
718
887
  ## `emb tasks run TASK`
719
888
 
720
889
  Run tasks.
721
890
 
722
891
  ```
723
892
  USAGE
724
- $ emb tasks run TASK... [--json] [--verbose] [-x container|local] [-a]
893
+ $ emb tasks run TASK... [--json] [--verbose] [-C <value>] [-x container|local] [-a]
725
894
 
726
895
  ARGUMENTS
727
896
  TASK... List of tasks to run. You can provide either ids or names (eg: component:task or task)
728
897
 
729
898
  FLAGS
899
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
730
900
  -a, --all-matching Run all tasks matching (when multiple matches)
731
901
  -x, --executor=<option> Where to run the task. (experimental!)
732
902
  <options: container|local>
@@ -745,18 +915,21 @@ EXAMPLES
745
915
  $ emb tasks run
746
916
  ```
747
917
 
918
+ _See code: [src/commands/tasks/run.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/tasks/run.ts)_
919
+
748
920
  ## `emb up [COMPONENT]`
749
921
 
750
922
  Start the whole project.
751
923
 
752
924
  ```
753
925
  USAGE
754
- $ emb up [COMPONENT...] [--json] [--verbose] [--flavor <value>] [-f]
926
+ $ emb up [COMPONENT...] [--json] [--verbose] [-C <value>] [--flavor <value>] [-f]
755
927
 
756
928
  ARGUMENTS
757
929
  [COMPONENT...] The component(s) to build and start
758
930
 
759
931
  FLAGS
932
+ -C, --root=<value> Run as if emb was started in <path>. Can also be set via EMB_ROOT env var.
760
933
  -f, --force Bypass caches, force the recreation of containers, etc
761
934
  --flavor=<value> Specify the flavor to use.
762
935
  --[no-]verbose
@@ -771,6 +944,8 @@ EXAMPLES
771
944
  $ emb up
772
945
  ```
773
946
 
947
+ _See code: [src/commands/up.ts](https://github.com/enspirit/emb/blob/v0.17.5/src/commands/up.ts)_
948
+
774
949
  ## `emb update [CHANNEL]`
775
950
 
776
951
  update the emb CLI