@knocklabs/cli 0.2.4 → 0.2.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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ $ npm install -g @knocklabs/cli
16
16
  $ knock COMMAND
17
17
  running command...
18
18
  $ knock (--version)
19
- @knocklabs/cli/0.2.4 linux-x64 node-v18.20.8
19
+ @knocklabs/cli/0.2.5 linux-x64 node-v18.20.8
20
20
  $ knock --help [COMMAND]
21
21
  USAGE
22
22
  $ knock COMMAND
@@ -90,7 +90,7 @@ FLAGS
90
90
  --service-token=<value> The service token to authenticate with.
91
91
  ```
92
92
 
93
- _See code: [src/commands/commit/index.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/commit/index.ts)_
93
+ _See code: [src/commands/commit/index.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/commit/index.ts)_
94
94
 
95
95
  ## `knock commit get ID`
96
96
 
@@ -107,7 +107,7 @@ GLOBAL FLAGS
107
107
  --json Format output as json.
108
108
  ```
109
109
 
110
- _See code: [src/commands/commit/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/commit/get.ts)_
110
+ _See code: [src/commands/commit/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/commit/get.ts)_
111
111
 
112
112
  ## `knock commit list`
113
113
 
@@ -116,28 +116,29 @@ Display all commits in an environment
116
116
  ```
117
117
  USAGE
118
118
  $ knock commit list [--json] [--service-token <value>] [--environment <value>] [--promoted] [--resource-type
119
- email_layout|guide|message_type|partial|translation|workflow] [--resource-id <value>] [--after <value>] [--before
119
+ email_layout|guide|message_type|partial|translation|workflow...] [--resource-id <value>] [--after <value>] [--before
120
120
  <value>] [--limit <value>]
121
121
 
122
122
  FLAGS
123
- --after=<value> The cursor after which to fetch the next page.
124
- --before=<value> The cursor before which to fetch the previous page.
125
- --environment=<value> [default: development] The environment to use.
126
- --limit=<value> The total number of entries to fetch per page.
127
- --[no-]promoted Show only promoted or unpromoted changes between the given environment and the subsequent
128
- environment.
129
- --resource-id=<value> Filter commits by resource identifier. Must be used together with resource-type. For most
130
- resources, this will be the resource key. In the case of translations, this will be the
131
- locale code and namespace, separated by a /. For example, en/courses or en.
132
- --resource-type=<option> Filter commits by resource type. Must be used together with resource-id.
133
- <options: email_layout|guide|message_type|partial|translation|workflow>
134
- --service-token=<value> The service token to authenticate with.
123
+ --after=<value> The cursor after which to fetch the next page.
124
+ --before=<value> The cursor before which to fetch the previous page.
125
+ --environment=<value> [default: development] The environment to use.
126
+ --limit=<value> The total number of entries to fetch per page.
127
+ --[no-]promoted Show only promoted or unpromoted changes between the given environment and the subsequent
128
+ environment.
129
+ --resource-id=<value> Filter commits by resource identifier. Must be used together with resource-type. For most
130
+ resources, this will be the resource key. In the case of translations, this will be the
131
+ locale code and namespace, separated by a /. For example, en/courses or en.
132
+ --resource-type=<option>... Filter commits by resource type. Can be used alone or together with resource-id. Use
133
+ multiple --resource-type flags for multiple values.
134
+ <options: email_layout|guide|message_type|partial|translation|workflow>
135
+ --service-token=<value> The service token to authenticate with.
135
136
 
136
137
  GLOBAL FLAGS
137
138
  --json Format output as json.
138
139
  ```
139
140
 
140
- _See code: [src/commands/commit/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/commit/list.ts)_
141
+ _See code: [src/commands/commit/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/commit/list.ts)_
141
142
 
142
143
  ## `knock commit promote`
143
144
 
@@ -154,7 +155,7 @@ FLAGS
154
155
  --to=<value> The destination environment to promote all changes from the preceding environment.
155
156
  ```
156
157
 
157
- _See code: [src/commands/commit/promote.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/commit/promote.ts)_
158
+ _See code: [src/commands/commit/promote.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/commit/promote.ts)_
158
159
 
159
160
  ## `knock guide activate GUIDEKEY`
160
161
 
@@ -184,7 +185,7 @@ DESCRIPTION
184
185
  or deactivated at a later time using the --from and --until flags.
185
186
  ```
186
187
 
187
- _See code: [src/commands/guide/activate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/activate.ts)_
188
+ _See code: [src/commands/guide/activate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/activate.ts)_
188
189
 
189
190
  ## `knock guide generate-types`
190
191
 
@@ -205,7 +206,7 @@ DESCRIPTION
205
206
  Generate types for all guides in an environment and write them to a file.
206
207
  ```
207
208
 
208
- _See code: [src/commands/guide/generate-types.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/generate-types.ts)_
209
+ _See code: [src/commands/guide/generate-types.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/generate-types.ts)_
209
210
 
210
211
  ## `knock guide get GUIDEKEY`
211
212
 
@@ -225,7 +226,7 @@ GLOBAL FLAGS
225
226
  --json Format output as json.
226
227
  ```
227
228
 
228
- _See code: [src/commands/guide/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/get.ts)_
229
+ _See code: [src/commands/guide/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/get.ts)_
229
230
 
230
231
  ## `knock guide list`
231
232
 
@@ -248,7 +249,7 @@ GLOBAL FLAGS
248
249
  --json Format output as json.
249
250
  ```
250
251
 
251
- _See code: [src/commands/guide/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/list.ts)_
252
+ _See code: [src/commands/guide/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/list.ts)_
252
253
 
253
254
  ## `knock guide pull [GUIDEKEY]`
254
255
 
@@ -268,7 +269,7 @@ FLAGS
268
269
  --service-token=<value> The service token to authenticate with.
269
270
  ```
270
271
 
271
- _See code: [src/commands/guide/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/pull.ts)_
272
+ _See code: [src/commands/guide/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/pull.ts)_
272
273
 
273
274
  ## `knock guide push [GUIDEKEY]`
274
275
 
@@ -276,20 +277,19 @@ Push one or more guides from a local file system to Knock.
276
277
 
277
278
  ```
278
279
  USAGE
279
- $ knock guide push [GUIDEKEY] [--service-token <value>] [--environment development] [--guides-dir <value>
280
- --all] [-m <value> --commit]
280
+ $ knock guide push [GUIDEKEY] [--service-token <value>] [--environment <value>] [--guides-dir <value> --all]
281
+ [-m <value> --commit]
281
282
 
282
283
  FLAGS
283
284
  -m, --commit-message=<value> Use the given value as the commit message
284
285
  --all Whether to push all guides from the target directory.
285
286
  --commit Push and commit the guide(s) at the same time
286
- --environment=<option> [default: development] Pushing a guide is only allowed in the development environment
287
- <options: development>
287
+ --environment=<value> [default: development] The environment to push the guide to. Defaults to development.
288
288
  --guides-dir=<value> The target directory path to find all guides to push.
289
289
  --service-token=<value> The service token to authenticate with.
290
290
  ```
291
291
 
292
- _See code: [src/commands/guide/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/push.ts)_
292
+ _See code: [src/commands/guide/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/push.ts)_
293
293
 
294
294
  ## `knock guide validate [GUIDEKEY]`
295
295
 
@@ -297,18 +297,16 @@ Validate one or more guides from a local file system.
297
297
 
298
298
  ```
299
299
  USAGE
300
- $ knock guide validate [GUIDEKEY] [--service-token <value>] [--environment development] [--guides-dir <value>
301
- --all]
300
+ $ knock guide validate [GUIDEKEY] [--service-token <value>] [--environment <value>] [--guides-dir <value> --all]
302
301
 
303
302
  FLAGS
304
303
  --all Whether to validate all guides from the target directory.
305
- --environment=<option> [default: development] Validating a guide is only done in the development environment
306
- <options: development>
304
+ --environment=<value> [default: development] The environment to validate the guide in. Defaults to development.
307
305
  --guides-dir=<value> The target directory path to find all guides to validate.
308
306
  --service-token=<value> The service token to authenticate with.
309
307
  ```
310
308
 
311
- _See code: [src/commands/guide/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/guide/validate.ts)_
309
+ _See code: [src/commands/guide/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/guide/validate.ts)_
312
310
 
313
311
  ## `knock help [COMMAND]`
314
312
 
@@ -319,7 +317,7 @@ USAGE
319
317
  $ knock help [COMMAND...] [-n]
320
318
 
321
319
  ARGUMENTS
322
- COMMAND... Command to show help for.
320
+ [COMMAND...] Command to show help for.
323
321
 
324
322
  FLAGS
325
323
  -n, --nested-commands Include all nested commands in the output.
@@ -348,7 +346,7 @@ GLOBAL FLAGS
348
346
  --json Format output as json.
349
347
  ```
350
348
 
351
- _See code: [src/commands/layout/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/layout/get.ts)_
349
+ _See code: [src/commands/layout/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/layout/get.ts)_
352
350
 
353
351
  ## `knock layout list`
354
352
 
@@ -371,7 +369,7 @@ GLOBAL FLAGS
371
369
  --json Format output as json.
372
370
  ```
373
371
 
374
- _See code: [src/commands/layout/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/layout/list.ts)_
372
+ _See code: [src/commands/layout/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/layout/list.ts)_
375
373
 
376
374
  ## `knock layout pull [EMAILLAYOUTKEY]`
377
375
 
@@ -391,7 +389,7 @@ FLAGS
391
389
  --service-token=<value> The service token to authenticate with.
392
390
  ```
393
391
 
394
- _See code: [src/commands/layout/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/layout/pull.ts)_
392
+ _See code: [src/commands/layout/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/layout/pull.ts)_
395
393
 
396
394
  ## `knock layout push [EMAILLAYOUTKEY]`
397
395
 
@@ -413,7 +411,7 @@ FLAGS
413
411
  --service-token=<value> The service token to authenticate with.
414
412
  ```
415
413
 
416
- _See code: [src/commands/layout/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/layout/push.ts)_
414
+ _See code: [src/commands/layout/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/layout/push.ts)_
417
415
 
418
416
  ## `knock layout validate [EMAILLAYOUTKEY]`
419
417
 
@@ -432,7 +430,7 @@ FLAGS
432
430
  --service-token=<value> The service token to authenticate with.
433
431
  ```
434
432
 
435
- _See code: [src/commands/layout/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/layout/validate.ts)_
433
+ _See code: [src/commands/layout/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/layout/validate.ts)_
436
434
 
437
435
  ## `knock login`
438
436
 
@@ -446,7 +444,7 @@ FLAGS
446
444
  --service-token=<value> The service token to authenticate with.
447
445
  ```
448
446
 
449
- _See code: [src/commands/login.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/login.ts)_
447
+ _See code: [src/commands/login.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/login.ts)_
450
448
 
451
449
  ## `knock logout`
452
450
 
@@ -460,7 +458,7 @@ FLAGS
460
458
  --service-token=<value> The service token to authenticate with.
461
459
  ```
462
460
 
463
- _See code: [src/commands/logout.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/logout.ts)_
461
+ _See code: [src/commands/logout.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/logout.ts)_
464
462
 
465
463
  ## `knock message-type get MESSAGETYPEKEY`
466
464
 
@@ -480,7 +478,7 @@ GLOBAL FLAGS
480
478
  --json Format output as json.
481
479
  ```
482
480
 
483
- _See code: [src/commands/message-type/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/message-type/get.ts)_
481
+ _See code: [src/commands/message-type/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/message-type/get.ts)_
484
482
 
485
483
  ## `knock message-type list`
486
484
 
@@ -503,7 +501,7 @@ GLOBAL FLAGS
503
501
  --json Format output as json.
504
502
  ```
505
503
 
506
- _See code: [src/commands/message-type/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/message-type/list.ts)_
504
+ _See code: [src/commands/message-type/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/message-type/list.ts)_
507
505
 
508
506
  ## `knock message-type pull [MESSAGETYPEKEY]`
509
507
 
@@ -523,7 +521,7 @@ FLAGS
523
521
  --service-token=<value> The service token to authenticate with.
524
522
  ```
525
523
 
526
- _See code: [src/commands/message-type/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/message-type/pull.ts)_
524
+ _See code: [src/commands/message-type/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/message-type/pull.ts)_
527
525
 
528
526
  ## `knock message-type push [MESSAGETYPEKEY]`
529
527
 
@@ -545,7 +543,7 @@ FLAGS
545
543
  --service-token=<value> The service token to authenticate with.
546
544
  ```
547
545
 
548
- _See code: [src/commands/message-type/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/message-type/push.ts)_
546
+ _See code: [src/commands/message-type/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/message-type/push.ts)_
549
547
 
550
548
  ## `knock message-type validate [MESSAGETYPEKEY]`
551
549
 
@@ -565,7 +563,7 @@ FLAGS
565
563
  --service-token=<value> The service token to authenticate with.
566
564
  ```
567
565
 
568
- _See code: [src/commands/message-type/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/message-type/validate.ts)_
566
+ _See code: [src/commands/message-type/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/message-type/validate.ts)_
569
567
 
570
568
  ## `knock partial get PARTIALKEY`
571
569
 
@@ -585,7 +583,7 @@ GLOBAL FLAGS
585
583
  --json Format output as json.
586
584
  ```
587
585
 
588
- _See code: [src/commands/partial/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/partial/get.ts)_
586
+ _See code: [src/commands/partial/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/partial/get.ts)_
589
587
 
590
588
  ## `knock partial list`
591
589
 
@@ -608,7 +606,7 @@ GLOBAL FLAGS
608
606
  --json Format output as json.
609
607
  ```
610
608
 
611
- _See code: [src/commands/partial/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/partial/list.ts)_
609
+ _See code: [src/commands/partial/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/partial/list.ts)_
612
610
 
613
611
  ## `knock partial pull [PARTIALKEY]`
614
612
 
@@ -628,7 +626,7 @@ FLAGS
628
626
  --service-token=<value> The service token to authenticate with.
629
627
  ```
630
628
 
631
- _See code: [src/commands/partial/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/partial/pull.ts)_
629
+ _See code: [src/commands/partial/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/partial/pull.ts)_
632
630
 
633
631
  ## `knock partial push [PARTIALKEY]`
634
632
 
@@ -649,7 +647,7 @@ FLAGS
649
647
  --service-token=<value> The service token to authenticate with.
650
648
  ```
651
649
 
652
- _See code: [src/commands/partial/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/partial/push.ts)_
650
+ _See code: [src/commands/partial/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/partial/push.ts)_
653
651
 
654
652
  ## `knock partial validate [PARTIALKEY]`
655
653
 
@@ -668,7 +666,7 @@ FLAGS
668
666
  --service-token=<value> The service token to authenticate with.
669
667
  ```
670
668
 
671
- _See code: [src/commands/partial/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/partial/validate.ts)_
669
+ _See code: [src/commands/partial/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/partial/validate.ts)_
672
670
 
673
671
  ## `knock pull`
674
672
 
@@ -687,7 +685,7 @@ FLAGS
687
685
  --service-token=<value> The service token to authenticate with.
688
686
  ```
689
687
 
690
- _See code: [src/commands/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/pull.ts)_
688
+ _See code: [src/commands/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/pull.ts)_
691
689
 
692
690
  ## `knock push`
693
691
 
@@ -707,7 +705,7 @@ FLAGS
707
705
  --service-token=<value> The service token to authenticate with.
708
706
  ```
709
707
 
710
- _See code: [src/commands/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/push.ts)_
708
+ _See code: [src/commands/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/push.ts)_
711
709
 
712
710
  ## `knock translation get TRANSLATIONREF`
713
711
 
@@ -734,7 +732,7 @@ GLOBAL FLAGS
734
732
  --json Format output as json.
735
733
  ```
736
734
 
737
- _See code: [src/commands/translation/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/translation/get.ts)_
735
+ _See code: [src/commands/translation/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/translation/get.ts)_
738
736
 
739
737
  ## `knock translation list`
740
738
 
@@ -757,7 +755,7 @@ GLOBAL FLAGS
757
755
  --json Format output as json.
758
756
  ```
759
757
 
760
- _See code: [src/commands/translation/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/translation/list.ts)_
758
+ _See code: [src/commands/translation/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/translation/list.ts)_
761
759
 
762
760
  ## `knock translation pull [TRANSLATIONREF]`
763
761
 
@@ -769,9 +767,9 @@ USAGE
769
767
  <value> --all] [--hide-uncommitted-changes] [--force] [--format json|po]
770
768
 
771
769
  ARGUMENTS
772
- TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
773
- If a translation has no namespace, it is the same as the locale, e.g. `en`.
774
- If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
770
+ [TRANSLATIONREF] Translation ref is a identifier string that refers to a unique translation.
771
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
772
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
775
773
 
776
774
  FLAGS
777
775
  --all Whether to pull all translations from the specified environment.
@@ -784,7 +782,7 @@ FLAGS
784
782
  --translations-dir=<value> The target directory path to pull all translations into.
785
783
  ```
786
784
 
787
- _See code: [src/commands/translation/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/translation/pull.ts)_
785
+ _See code: [src/commands/translation/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/translation/pull.ts)_
788
786
 
789
787
  ## `knock translation push [TRANSLATIONREF]`
790
788
 
@@ -796,9 +794,9 @@ USAGE
796
794
  <value> --all] [-m <value> --commit]
797
795
 
798
796
  ARGUMENTS
799
- TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
800
- If a translation has no namespace, it is the same as the locale, e.g. `en`.
801
- If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
797
+ [TRANSLATIONREF] Translation ref is a identifier string that refers to a unique translation.
798
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
799
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
802
800
 
803
801
  FLAGS
804
802
  -m, --commit-message=<value> Use the given value as the commit message
@@ -811,7 +809,7 @@ FLAGS
811
809
  --translations-dir=<value> The target directory path to find all translations to push.
812
810
  ```
813
811
 
814
- _See code: [src/commands/translation/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/translation/push.ts)_
812
+ _See code: [src/commands/translation/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/translation/push.ts)_
815
813
 
816
814
  ## `knock translation validate [TRANSLATIONREF]`
817
815
 
@@ -823,9 +821,9 @@ USAGE
823
821
  <value> --all]
824
822
 
825
823
  ARGUMENTS
826
- TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
827
- If a translation has no namespace, it is the same as the locale, e.g. `en`.
828
- If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
824
+ [TRANSLATIONREF] Translation ref is a identifier string that refers to a unique translation.
825
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
826
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
829
827
 
830
828
  FLAGS
831
829
  --all Whether to validate all translations from the target directory.
@@ -836,7 +834,7 @@ FLAGS
836
834
  --translations-dir=<value> The target directory path to find all translations to validate.
837
835
  ```
838
836
 
839
- _See code: [src/commands/translation/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/translation/validate.ts)_
837
+ _See code: [src/commands/translation/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/translation/validate.ts)_
840
838
 
841
839
  ## `knock whoami`
842
840
 
@@ -853,7 +851,7 @@ GLOBAL FLAGS
853
851
  --json Format output as json.
854
852
  ```
855
853
 
856
- _See code: [src/commands/whoami.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/whoami.ts)_
854
+ _See code: [src/commands/whoami.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/whoami.ts)_
857
855
 
858
856
  ## `knock workflow activate WORKFLOWKEY`
859
857
 
@@ -880,7 +878,7 @@ DESCRIPTION
880
878
  with `false` in order to deactivate it.
881
879
  ```
882
880
 
883
- _See code: [src/commands/workflow/activate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/activate.ts)_
881
+ _See code: [src/commands/workflow/activate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/activate.ts)_
884
882
 
885
883
  ## `knock workflow generate-types`
886
884
 
@@ -901,7 +899,7 @@ DESCRIPTION
901
899
  Generate types for all workflows in an environment and write them to a file.
902
900
  ```
903
901
 
904
- _See code: [src/commands/workflow/generate-types.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/generate-types.ts)_
902
+ _See code: [src/commands/workflow/generate-types.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/generate-types.ts)_
905
903
 
906
904
  ## `knock workflow get WORKFLOWKEY`
907
905
 
@@ -921,7 +919,7 @@ GLOBAL FLAGS
921
919
  --json Format output as json.
922
920
  ```
923
921
 
924
- _See code: [src/commands/workflow/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/get.ts)_
922
+ _See code: [src/commands/workflow/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/get.ts)_
925
923
 
926
924
  ## `knock workflow list`
927
925
 
@@ -944,7 +942,7 @@ GLOBAL FLAGS
944
942
  --json Format output as json.
945
943
  ```
946
944
 
947
- _See code: [src/commands/workflow/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/list.ts)_
945
+ _See code: [src/commands/workflow/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/list.ts)_
948
946
 
949
947
  ## `knock workflow pull [WORKFLOWKEY]`
950
948
 
@@ -964,7 +962,7 @@ FLAGS
964
962
  --workflows-dir=<value> The target directory path to pull all workflows into.
965
963
  ```
966
964
 
967
- _See code: [src/commands/workflow/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/pull.ts)_
965
+ _See code: [src/commands/workflow/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/pull.ts)_
968
966
 
969
967
  ## `knock workflow push [WORKFLOWKEY]`
970
968
 
@@ -972,20 +970,19 @@ Push one or more workflows from a local file system to Knock.
972
970
 
973
971
  ```
974
972
  USAGE
975
- $ knock workflow push [WORKFLOWKEY] [--service-token <value>] [--environment development] [--workflows-dir
976
- <value> --all] [-m <value> --commit]
973
+ $ knock workflow push [WORKFLOWKEY] [--service-token <value>] [--environment <value>] [--workflows-dir <value>
974
+ --all] [-m <value> --commit]
977
975
 
978
976
  FLAGS
979
977
  -m, --commit-message=<value> Use the given value as the commit message
980
978
  --all Whether to push all workflows from the target directory.
981
979
  --commit Push and commit the workflow(s) at the same time
982
- --environment=<option> [default: development] Pushing a workflow is only allowed in the development environment
983
- <options: development>
980
+ --environment=<value> [default: development] The environment to push the workflow to. Defaults to development.
984
981
  --service-token=<value> The service token to authenticate with.
985
982
  --workflows-dir=<value> The target directory path to find all workflows to push.
986
983
  ```
987
984
 
988
- _See code: [src/commands/workflow/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/push.ts)_
985
+ _See code: [src/commands/workflow/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/push.ts)_
989
986
 
990
987
  ## `knock workflow run WORKFLOWKEY`
991
988
 
@@ -1006,7 +1003,7 @@ FLAGS
1006
1003
  --tenant=<value> A tenant id for the workflow run.
1007
1004
  ```
1008
1005
 
1009
- _See code: [src/commands/workflow/run.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/run.ts)_
1006
+ _See code: [src/commands/workflow/run.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/run.ts)_
1010
1007
 
1011
1008
  ## `knock workflow validate [WORKFLOWKEY]`
1012
1009
 
@@ -1014,16 +1011,15 @@ Validate one or more workflows from a local file system.
1014
1011
 
1015
1012
  ```
1016
1013
  USAGE
1017
- $ knock workflow validate [WORKFLOWKEY] [--service-token <value>] [--environment development] [--workflows-dir
1018
- <value> --all]
1014
+ $ knock workflow validate [WORKFLOWKEY] [--service-token <value>] [--environment <value>] [--workflows-dir <value>
1015
+ --all]
1019
1016
 
1020
1017
  FLAGS
1021
1018
  --all Whether to validate all workflows from the target directory.
1022
- --environment=<option> [default: development] Validating a workflow is only done in the development environment
1023
- <options: development>
1019
+ --environment=<value> [default: development] The environment to validate the workflow in. Defaults to development.
1024
1020
  --service-token=<value> The service token to authenticate with.
1025
1021
  --workflows-dir=<value> The target directory path to find all workflows to validate.
1026
1022
  ```
1027
1023
 
1028
- _See code: [src/commands/workflow/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.4/src/commands/workflow/validate.ts)_
1024
+ _See code: [src/commands/workflow/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.2.5/src/commands/workflow/validate.ts)_
1029
1025
  <!-- commandsstop -->
@@ -78,12 +78,17 @@ function _interop_require_wildcard(obj, nodeInterop) {
78
78
  }
79
79
  class CommitList extends _basecommand.default {
80
80
  async run() {
81
- // Validate that resource-type and resource-id are used together
81
+ var _flags_resourcetype, _flags_resourcetype1;
82
+ // Validate flag combinations
82
83
  const { flags } = this.props;
83
- const hasResourceType = Boolean(flags["resource-type"]);
84
+ const hasResourceType = Boolean((_flags_resourcetype = flags["resource-type"]) === null || _flags_resourcetype === void 0 ? void 0 : _flags_resourcetype.length);
85
+ const hasResourceTypes = Boolean(((_flags_resourcetype1 = flags["resource-type"]) === null || _flags_resourcetype1 === void 0 ? void 0 : _flags_resourcetype1.length) ? flags["resource-type"].length > 1 : false);
84
86
  const hasResourceId = Boolean(flags["resource-id"]);
85
- if (hasResourceType !== hasResourceId) {
86
- this.error("The --resource-type and --resource-id flags must be used together. " + "You cannot use one without the other.");
87
+ if (hasResourceId && !hasResourceType) {
88
+ this.error("The --resource-id flag must be used together with --resource-type. " + "You cannot use --resource-id without --resource-type.");
89
+ }
90
+ if (hasResourceId && hasResourceTypes) {
91
+ this.error("The --resource-id flag cannot be used with multiple --resource-type. " + "Use --resource-id only with --resource-type for filtering by a specific resource.");
87
92
  }
88
93
  const resp = await this.request();
89
94
  if (flags.json) return resp.data;
@@ -164,7 +169,8 @@ _define_property(CommitList, "flags", {
164
169
  allowNo: true
165
170
  }),
166
171
  "resource-type": _core.Flags.string({
167
- summary: "Filter commits by resource type. Must be used together with resource-id.",
172
+ summary: "Filter commits by resource type. Can be used alone or together with resource-id. Use multiple --resource-type flags for multiple values.",
173
+ multiple: true,
168
174
  options: [
169
175
  "email_layout",
170
176
  "guide",
@@ -138,11 +138,8 @@ class GuidePush extends _basecommand.default {
138
138
  _define_property(GuidePush, "summary", "Push one or more guides from a local file system to Knock.");
139
139
  _define_property(GuidePush, "flags", {
140
140
  environment: _core.Flags.string({
141
- summary: "Pushing a guide is only allowed in the development environment",
142
- default: _const.KnockEnv.Development,
143
- options: [
144
- _const.KnockEnv.Development
145
- ]
141
+ summary: "The environment to push the guide to. Defaults to development.",
142
+ default: _const.KnockEnv.Development
146
143
  }),
147
144
  branch: _flag.branch,
148
145
  all: _core.Flags.boolean({
@@ -125,11 +125,8 @@ class GuideValidate extends _basecommand.default {
125
125
  _define_property(GuideValidate, "summary", "Validate one or more guides from a local file system.");
126
126
  _define_property(GuideValidate, "flags", {
127
127
  environment: _core.Flags.string({
128
- summary: "Validating a guide is only done in the development environment",
129
- default: _const.KnockEnv.Development,
130
- options: [
131
- _const.KnockEnv.Development
132
- ]
128
+ summary: "The environment to validate the guide in. Defaults to development.",
129
+ default: _const.KnockEnv.Development
133
130
  }),
134
131
  branch: _flag.branch,
135
132
  all: _core.Flags.boolean({
@@ -134,6 +134,7 @@ class TranslationGet extends _basecommand.default {
134
134
  }
135
135
  }
136
136
  _define_property(TranslationGet, "summary", "Display a single translation from an environment.");
137
+ _define_property(TranslationGet, "verifyFeatureEnabled", "translations");
137
138
  _define_property(TranslationGet, "flags", {
138
139
  environment: _core.Flags.string({
139
140
  default: "development",
@@ -137,6 +137,7 @@ class TranslationList extends _basecommand.default {
137
137
  }
138
138
  }
139
139
  _define_property(TranslationList, "summary", "Display all translations for an environment.");
140
+ _define_property(TranslationList, "verifyFeatureEnabled", "translations");
140
141
  _define_property(TranslationList, "flags", {
141
142
  environment: _core.Flags.string({
142
143
  default: "development",
@@ -173,6 +173,7 @@ class TranslationPull extends _basecommand.default {
173
173
  }
174
174
  }
175
175
  _define_property(TranslationPull, "summary", "Pull one or more translations from an environment into a local file system.");
176
+ _define_property(TranslationPull, "verifyFeatureEnabled", "translations");
176
177
  _define_property(TranslationPull, "flags", {
177
178
  environment: _core.Flags.string({
178
179
  default: "development",
@@ -125,6 +125,7 @@ class TranslationPush extends _basecommand.default {
125
125
  }
126
126
  }
127
127
  _define_property(TranslationPush, "summary", "Push one or more translations from a local file system to Knock.");
128
+ _define_property(TranslationPush, "verifyFeatureEnabled", "translations");
128
129
  _define_property(TranslationPush, "flags", {
129
130
  environment: _core.Flags.string({
130
131
  summary: "Pushing a translation is only allowed in the development environment",
@@ -120,6 +120,7 @@ class TranslationValidate extends _basecommand.default {
120
120
  }
121
121
  }
122
122
  _define_property(TranslationValidate, "summary", "Validate one or more translations from a local file system.");
123
+ _define_property(TranslationValidate, "verifyFeatureEnabled", "translations");
123
124
  _define_property(TranslationValidate, "flags", {
124
125
  environment: _core.Flags.string({
125
126
  summary: "Validating a translation is only done in the development environment",
@@ -12,7 +12,7 @@ const _nodepath = /*#__PURE__*/ _interop_require_wildcard(require("node:path"));
12
12
  const _core = require("@oclif/core");
13
13
  const _fsextra = /*#__PURE__*/ _interop_require_wildcard(require("fs-extra"));
14
14
  const _basecommand = /*#__PURE__*/ _interop_require_default(require("../../lib/base-command"));
15
- const _objectisomorphic = require("../../lib/helpers/object.isomorphic");
15
+ const _const = require("../../lib/helpers/const");
16
16
  const _ux = require("../../lib/helpers/ux");
17
17
  const _workflow = /*#__PURE__*/ _interop_require_wildcard(require("../../lib/marshal/workflow"));
18
18
  function _define_property(obj, key, value) {
@@ -119,17 +119,12 @@ class WorkflowNew extends _basecommand.default {
119
119
  const isExistingWorkflow = await this.checkExistingWorkflow();
120
120
  if (isExistingWorkflow) {
121
121
  this.log("");
122
- this.warn(`Workflow \`${args.workflowKey}\` already exists in \`development\` environment`);
122
+ this.warn(`Workflow \`${args.workflowKey}\` already exists in \`${flags.environment}\` environment`);
123
123
  }
124
124
  }
125
125
  async checkExistingWorkflow() {
126
- const props = (0, _objectisomorphic.merge)(this.props, {
127
- flags: {
128
- environment: "development"
129
- }
130
- });
131
126
  try {
132
- const resp = await this.apiV1.getWorkflow(props);
127
+ const resp = await this.apiV1.getWorkflow(this.props);
133
128
  return resp.status === 200;
134
129
  } catch {}
135
130
  }
@@ -140,7 +135,11 @@ _define_property(WorkflowNew, "flags", {
140
135
  "step"
141
136
  ]
142
137
  }),
143
- force: _core.Flags.boolean()
138
+ force: _core.Flags.boolean(),
139
+ environment: _core.Flags.string({
140
+ hidden: true,
141
+ default: _const.KnockEnv.Development
142
+ })
144
143
  });
145
144
  _define_property(WorkflowNew, "args", {
146
145
  workflowKey: _core.Args.string({
@@ -138,11 +138,8 @@ class WorkflowPush extends _basecommand.default {
138
138
  _define_property(WorkflowPush, "summary", "Push one or more workflows from a local file system to Knock.");
139
139
  _define_property(WorkflowPush, "flags", {
140
140
  environment: _core.Flags.string({
141
- summary: "Pushing a workflow is only allowed in the development environment",
142
- default: _const.KnockEnv.Development,
143
- options: [
144
- _const.KnockEnv.Development
145
- ]
141
+ summary: "The environment to push the workflow to. Defaults to development.",
142
+ default: _const.KnockEnv.Development
146
143
  }),
147
144
  branch: _flag.branch,
148
145
  all: _core.Flags.boolean({
@@ -125,11 +125,8 @@ class WorkflowValidate extends _basecommand.default {
125
125
  _define_property(WorkflowValidate, "summary", "Validate one or more workflows from a local file system.");
126
126
  _define_property(WorkflowValidate, "flags", {
127
127
  environment: _core.Flags.string({
128
- summary: "Validating a workflow is only done in the development environment",
129
- default: _const.KnockEnv.Development,
130
- options: [
131
- _const.KnockEnv.Development
132
- ]
128
+ summary: "The environment to validate the workflow in. Defaults to development.",
129
+ default: _const.KnockEnv.Development
133
130
  }),
134
131
  branch: _flag.branch,
135
132
  all: _core.Flags.boolean({
@@ -11,6 +11,7 @@ Object.defineProperty(exports, "default", {
11
11
  const _core = require("@oclif/core");
12
12
  const _apiv1 = /*#__PURE__*/ _interop_require_default(require("./api-v1"));
13
13
  const _auth = /*#__PURE__*/ _interop_require_default(require("./auth"));
14
+ const _accountfeatures = require("./helpers/account-features");
14
15
  const _runcontext = /*#__PURE__*/ _interop_require_wildcard(require("./run-context"));
15
16
  const _urls = require("./urls");
16
17
  const _userconfig = require("./user-config");
@@ -106,7 +107,12 @@ class BaseCommand extends _core.Command {
106
107
  }
107
108
  // 6. Instantiate a knock api client.
108
109
  this.apiV1 = new _apiv1.default(this.sessionContext, this.config);
109
- // 7. Load the run context of the invoked command.
110
+ // 7. Verify that required features are enabled for the account.
111
+ const ctor = this.ctor;
112
+ if (ctor.verifyFeatureEnabled) {
113
+ await this.verifyFeatureEnabled(ctor.verifyFeatureEnabled);
114
+ }
115
+ // 8. Load the run context of the invoked command.
110
116
  this.runContext = await _runcontext.load(this.id);
111
117
  }
112
118
  buildSessionContext() {
@@ -138,6 +144,15 @@ class BaseCommand extends _core.Command {
138
144
  this.error("No token found. Refusing to run command.");
139
145
  }
140
146
  }
147
+ async verifyFeatureEnabled(feature) {
148
+ if (feature === "translations") {
149
+ const featureCheck = await (0, _accountfeatures.checkTranslationsFeature)(this.apiV1);
150
+ if (!featureCheck.enabled) {
151
+ this.log(featureCheck.message);
152
+ this.exit(0);
153
+ }
154
+ }
155
+ }
141
156
  async refreshAccessTokenForSession() {
142
157
  // Maybe refresh the access token?
143
158
  try {
@@ -166,6 +181,7 @@ class BaseCommand extends _core.Command {
166
181
  super(...args), _define_property(this, "props", void 0), _define_property(this, "apiV1", void 0), _define_property(this, "runContext", void 0), _define_property(this, "sessionContext", void 0), _define_property(this, "configStore", void 0), _define_property(this, "requiresAuth", true);
167
182
  }
168
183
  }
184
+ _define_property(BaseCommand, "verifyFeatureEnabled", void 0);
169
185
  // Base flags are inherited by any command that extends BaseCommand.
170
186
  _define_property(BaseCommand, "baseFlags", {
171
187
  // Evaluated in the following precedence:
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get checkAccountFeature () {
13
+ return checkAccountFeature;
14
+ },
15
+ get checkTranslationsFeature () {
16
+ return checkTranslationsFeature;
17
+ }
18
+ });
19
+ const _request = require("./request");
20
+ async function checkAccountFeature(apiV1, featureName, options = {}) {
21
+ try {
22
+ const whoamiResp = await apiV1.whoami();
23
+ if (!(0, _request.isSuccessResp)(whoamiResp)) {
24
+ return {
25
+ enabled: false,
26
+ message: `Unable to retrieve account information: ${whoamiResp.status} ${whoamiResp.statusText}`
27
+ };
28
+ }
29
+ const accountFeatures = whoamiResp.data.account_features;
30
+ const isFeatureEnabled = (accountFeatures === null || accountFeatures === void 0 ? void 0 : accountFeatures[featureName]) === true;
31
+ if (!isFeatureEnabled) {
32
+ const defaultMessage = `The ${featureName} feature is not enabled for your account. Please contact support to enable this feature.`;
33
+ return {
34
+ enabled: false,
35
+ message: options.errorMessage || defaultMessage
36
+ };
37
+ }
38
+ return {
39
+ enabled: true
40
+ };
41
+ } catch (error) {
42
+ return {
43
+ enabled: false,
44
+ message: error instanceof Error ? error.message : "Unknown error occurred while checking translations feature"
45
+ };
46
+ }
47
+ }
48
+ async function checkTranslationsFeature(apiV1, options = {}) {
49
+ return checkAccountFeature(apiV1, "translations_allowed", {
50
+ errorMessage: options.errorMessage || "Translations are not enabled for your account. Please contact support to enable the translations feature.",
51
+ ...options
52
+ });
53
+ }
@@ -761,9 +761,9 @@
761
761
  },
762
762
  "resource-type": {
763
763
  "name": "resource-type",
764
- "summary": "Filter commits by resource type. Must be used together with resource-id.",
764
+ "summary": "Filter commits by resource type. Can be used alone or together with resource-id. Use multiple --resource-type flags for multiple values.",
765
765
  "hasDynamicHelp": false,
766
- "multiple": false,
766
+ "multiple": true,
767
767
  "options": [
768
768
  "email_layout",
769
769
  "guide",
@@ -1322,13 +1322,10 @@
1322
1322
  },
1323
1323
  "environment": {
1324
1324
  "name": "environment",
1325
- "summary": "Pushing a guide is only allowed in the development environment",
1325
+ "summary": "The environment to push the guide to. Defaults to development.",
1326
1326
  "default": "development",
1327
1327
  "hasDynamicHelp": false,
1328
1328
  "multiple": false,
1329
- "options": [
1330
- "development"
1331
- ],
1332
1329
  "type": "option"
1333
1330
  },
1334
1331
  "branch": {
@@ -1418,13 +1415,10 @@
1418
1415
  },
1419
1416
  "environment": {
1420
1417
  "name": "environment",
1421
- "summary": "Validating a guide is only done in the development environment",
1418
+ "summary": "The environment to validate the guide in. Defaults to development.",
1422
1419
  "default": "development",
1423
1420
  "hasDynamicHelp": false,
1424
1421
  "multiple": false,
1425
- "options": [
1426
- "development"
1427
- ],
1428
1422
  "type": "option"
1429
1423
  },
1430
1424
  "branch": {
@@ -2831,6 +2825,7 @@
2831
2825
  "strict": true,
2832
2826
  "summary": "Display a single translation from an environment.",
2833
2827
  "enableJsonFlag": true,
2828
+ "verifyFeatureEnabled": "translations",
2834
2829
  "isESM": false,
2835
2830
  "relativePath": [
2836
2831
  "dist",
@@ -2920,6 +2915,7 @@
2920
2915
  "strict": true,
2921
2916
  "summary": "Display all translations for an environment.",
2922
2917
  "enableJsonFlag": true,
2918
+ "verifyFeatureEnabled": "translations",
2923
2919
  "isESM": false,
2924
2920
  "relativePath": [
2925
2921
  "dist",
@@ -3021,6 +3017,7 @@
3021
3017
  "strict": true,
3022
3018
  "summary": "Pull one or more translations from an environment into a local file system.",
3023
3019
  "enableJsonFlag": false,
3020
+ "verifyFeatureEnabled": "translations",
3024
3021
  "isESM": false,
3025
3022
  "relativePath": [
3026
3023
  "dist",
@@ -3118,6 +3115,7 @@
3118
3115
  "strict": true,
3119
3116
  "summary": "Push one or more translations from a local file system to Knock.",
3120
3117
  "enableJsonFlag": false,
3118
+ "verifyFeatureEnabled": "translations",
3121
3119
  "isESM": false,
3122
3120
  "relativePath": [
3123
3121
  "dist",
@@ -3198,6 +3196,7 @@
3198
3196
  "strict": true,
3199
3197
  "summary": "Validate one or more translations from a local file system.",
3200
3198
  "enableJsonFlag": false,
3199
+ "verifyFeatureEnabled": "translations",
3201
3200
  "isESM": false,
3202
3201
  "relativePath": [
3203
3202
  "dist",
@@ -3549,6 +3548,14 @@
3549
3548
  "name": "force",
3550
3549
  "allowNo": false,
3551
3550
  "type": "boolean"
3551
+ },
3552
+ "environment": {
3553
+ "hidden": true,
3554
+ "name": "environment",
3555
+ "default": "development",
3556
+ "hasDynamicHelp": false,
3557
+ "multiple": false,
3558
+ "type": "option"
3552
3559
  }
3553
3560
  },
3554
3561
  "hasDynamicHelp": false,
@@ -3684,13 +3691,10 @@
3684
3691
  },
3685
3692
  "environment": {
3686
3693
  "name": "environment",
3687
- "summary": "Pushing a workflow is only allowed in the development environment",
3694
+ "summary": "The environment to push the workflow to. Defaults to development.",
3688
3695
  "default": "development",
3689
3696
  "hasDynamicHelp": false,
3690
3697
  "multiple": false,
3691
- "options": [
3692
- "development"
3693
- ],
3694
3698
  "type": "option"
3695
3699
  },
3696
3700
  "branch": {
@@ -3872,13 +3876,10 @@
3872
3876
  },
3873
3877
  "environment": {
3874
3878
  "name": "environment",
3875
- "summary": "Validating a workflow is only done in the development environment",
3879
+ "summary": "The environment to validate the workflow in. Defaults to development.",
3876
3880
  "default": "development",
3877
3881
  "hasDynamicHelp": false,
3878
3882
  "multiple": false,
3879
- "options": [
3880
- "development"
3881
- ],
3882
3883
  "type": "option"
3883
3884
  },
3884
3885
  "branch": {
@@ -3924,5 +3925,5 @@
3924
3925
  ]
3925
3926
  }
3926
3927
  },
3927
- "version": "0.2.4"
3928
+ "version": "0.2.5"
3928
3929
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knocklabs/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Knock CLI",
5
5
  "author": "@knocklabs",
6
6
  "bin": {
@@ -21,7 +21,7 @@
21
21
  "@oclif/core": "^3",
22
22
  "@oclif/plugin-help": "^6",
23
23
  "@prantlf/jsonlint": "^14.1.0",
24
- "axios": "^1.11.0",
24
+ "axios": "^1.12.2",
25
25
  "date-fns": "^2.30.0",
26
26
  "enquirer": "^2.4.1",
27
27
  "find-up": "^5.0.0",
@@ -41,7 +41,7 @@
41
41
  "@types/chai": "^4",
42
42
  "@types/fs-extra": "^11.0.4",
43
43
  "@types/mocha": "^10.0.10",
44
- "@types/node": "^20.19.14",
44
+ "@types/node": "^20.19.22",
45
45
  "chai": "^4",
46
46
  "eslint": "^7.32.0",
47
47
  "eslint-config-oclif": "^4",
@@ -64,6 +64,9 @@
64
64
  "bin": "knock",
65
65
  "dirname": "knock",
66
66
  "commands": "./dist/commands",
67
+ "additionalHelpFlags": [
68
+ "-h"
69
+ ],
67
70
  "plugins": [
68
71
  "@oclif/plugin-help"
69
72
  ],