@knocklabs/cli 0.1.13 → 0.1.14

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 (78) hide show
  1. package/README.md +497 -1
  2. package/oclif.manifest.json +1760 -2
  3. package/package.json +2 -2
  4. /package/dist/{src/commands → commands}/commit/get.js +0 -0
  5. /package/dist/{src/commands → commands}/commit/index.js +0 -0
  6. /package/dist/{src/commands → commands}/commit/list.js +0 -0
  7. /package/dist/{src/commands → commands}/commit/promote.js +0 -0
  8. /package/dist/{src/commands → commands}/knock.js +0 -0
  9. /package/dist/{src/commands → commands}/layout/get.js +0 -0
  10. /package/dist/{src/commands → commands}/layout/list.js +0 -0
  11. /package/dist/{src/commands → commands}/layout/pull.js +0 -0
  12. /package/dist/{src/commands → commands}/layout/push.js +0 -0
  13. /package/dist/{src/commands → commands}/layout/validate.js +0 -0
  14. /package/dist/{src/commands → commands}/ping.js +0 -0
  15. /package/dist/{src/commands → commands}/translation/get.js +0 -0
  16. /package/dist/{src/commands → commands}/translation/list.js +0 -0
  17. /package/dist/{src/commands → commands}/translation/pull.js +0 -0
  18. /package/dist/{src/commands → commands}/translation/push.js +0 -0
  19. /package/dist/{src/commands → commands}/translation/validate.js +0 -0
  20. /package/dist/{src/commands → commands}/whoami.js +0 -0
  21. /package/dist/{src/commands → commands}/workflow/activate.js +0 -0
  22. /package/dist/{src/commands → commands}/workflow/get.js +0 -0
  23. /package/dist/{src/commands → commands}/workflow/list.js +0 -0
  24. /package/dist/{src/commands → commands}/workflow/new.js +0 -0
  25. /package/dist/{src/commands → commands}/workflow/pull.js +0 -0
  26. /package/dist/{src/commands → commands}/workflow/push.js +0 -0
  27. /package/dist/{src/commands → commands}/workflow/run.js +0 -0
  28. /package/dist/{src/commands → commands}/workflow/validate.js +0 -0
  29. /package/dist/{src/index.js → index.js} +0 -0
  30. /package/dist/{src/isomorphic.js → isomorphic.js} +0 -0
  31. /package/dist/{src/lib → lib}/api-v1.js +0 -0
  32. /package/dist/{src/lib → lib}/base-command.js +0 -0
  33. /package/dist/{src/lib → lib}/helpers/const.js +0 -0
  34. /package/dist/{src/lib → lib}/helpers/date.js +0 -0
  35. /package/dist/{src/lib → lib}/helpers/error.js +0 -0
  36. /package/dist/{src/lib → lib}/helpers/flag.js +0 -0
  37. /package/dist/{src/lib → lib}/helpers/fs.js +0 -0
  38. /package/dist/{src/lib → lib}/helpers/json.js +0 -0
  39. /package/dist/{src/lib → lib}/helpers/liquid.js +0 -0
  40. /package/dist/{src/lib → lib}/helpers/object.isomorphic.js +0 -0
  41. /package/dist/{src/lib → lib}/helpers/page.js +0 -0
  42. /package/dist/{src/lib → lib}/helpers/request.js +0 -0
  43. /package/dist/{src/lib → lib}/helpers/string.js +0 -0
  44. /package/dist/{src/lib → lib}/helpers/ux.js +0 -0
  45. /package/dist/{src/lib → lib}/marshal/commit/helpers.js +0 -0
  46. /package/dist/{src/lib → lib}/marshal/commit/index.js +0 -0
  47. /package/dist/{src/lib → lib}/marshal/commit/types.js +0 -0
  48. /package/dist/{src/lib → lib}/marshal/conditions/helpers.js +0 -0
  49. /package/dist/{src/lib → lib}/marshal/conditions/index.js +0 -0
  50. /package/dist/{src/lib → lib}/marshal/conditions/types.js +0 -0
  51. /package/dist/{src/lib → lib}/marshal/email-layout/helpers.js +0 -0
  52. /package/dist/{src/lib → lib}/marshal/email-layout/index.js +0 -0
  53. /package/dist/{src/lib → lib}/marshal/email-layout/processor.isomorphic.js +0 -0
  54. /package/dist/{src/lib → lib}/marshal/email-layout/reader.js +0 -0
  55. /package/dist/{src/lib → lib}/marshal/email-layout/types.js +0 -0
  56. /package/dist/{src/lib → lib}/marshal/email-layout/writer.js +0 -0
  57. /package/dist/{src/lib → lib}/marshal/index.isomorphic.js +0 -0
  58. /package/dist/{src/lib → lib}/marshal/shared/const.isomorphic.js +0 -0
  59. /package/dist/{src/lib → lib}/marshal/shared/helpers.js +0 -0
  60. /package/dist/{src/lib → lib}/marshal/shared/types.js +0 -0
  61. /package/dist/{src/lib → lib}/marshal/translation/helpers.js +0 -0
  62. /package/dist/{src/lib → lib}/marshal/translation/index.js +0 -0
  63. /package/dist/{src/lib → lib}/marshal/translation/processor.isomorphic.js +0 -0
  64. /package/dist/{src/lib → lib}/marshal/translation/reader.js +0 -0
  65. /package/dist/{src/lib → lib}/marshal/translation/types.js +0 -0
  66. /package/dist/{src/lib → lib}/marshal/translation/writer.js +0 -0
  67. /package/dist/{src/lib → lib}/marshal/workflow/generator.js +0 -0
  68. /package/dist/{src/lib → lib}/marshal/workflow/helpers.js +0 -0
  69. /package/dist/{src/lib → lib}/marshal/workflow/index.js +0 -0
  70. /package/dist/{src/lib → lib}/marshal/workflow/processor.isomorphic.js +0 -0
  71. /package/dist/{src/lib → lib}/marshal/workflow/reader.js +0 -0
  72. /package/dist/{src/lib → lib}/marshal/workflow/types.js +0 -0
  73. /package/dist/{src/lib → lib}/marshal/workflow/writer.js +0 -0
  74. /package/dist/{src/lib → lib}/run-context/helpers.js +0 -0
  75. /package/dist/{src/lib → lib}/run-context/index.js +0 -0
  76. /package/dist/{src/lib → lib}/run-context/loader.js +0 -0
  77. /package/dist/{src/lib → lib}/run-context/types.js +0 -0
  78. /package/dist/{src/lib → lib}/user-config.js +0 -0
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.1.13 linux-x64 node-v18.20.2
19
+ @knocklabs/cli/0.1.14 linux-x64 node-v18.20.2
20
20
  $ knock --help [COMMAND]
21
21
  USAGE
22
22
  $ knock COMMAND
@@ -27,7 +27,16 @@ USAGE
27
27
  # Commands
28
28
 
29
29
  <!-- commands -->
30
+ * [`knock commit`](#knock-commit)
31
+ * [`knock commit get ID`](#knock-commit-get-id)
32
+ * [`knock commit list`](#knock-commit-list)
33
+ * [`knock commit promote`](#knock-commit-promote)
30
34
  * [`knock help [COMMANDS]`](#knock-help-commands)
35
+ * [`knock layout get EMAILLAYOUTKEY`](#knock-layout-get-emaillayoutkey)
36
+ * [`knock layout list`](#knock-layout-list)
37
+ * [`knock layout pull [EMAILLAYOUTKEY]`](#knock-layout-pull-emaillayoutkey)
38
+ * [`knock layout push [EMAILLAYOUTKEY]`](#knock-layout-push-emaillayoutkey)
39
+ * [`knock layout validate [EMAILLAYOUTKEY]`](#knock-layout-validate-emaillayoutkey)
31
40
  * [`knock plugins`](#knock-plugins)
32
41
  * [`knock plugins:install PLUGIN...`](#knock-pluginsinstall-plugin)
33
42
  * [`knock plugins:inspect PLUGIN...`](#knock-pluginsinspect-plugin)
@@ -38,6 +47,96 @@ USAGE
38
47
  * [`knock plugins:uninstall PLUGIN...`](#knock-pluginsuninstall-plugin-1)
39
48
  * [`knock plugins:uninstall PLUGIN...`](#knock-pluginsuninstall-plugin-2)
40
49
  * [`knock plugins update`](#knock-plugins-update)
50
+ * [`knock translation get TRANSLATIONREF`](#knock-translation-get-translationref)
51
+ * [`knock translation list`](#knock-translation-list)
52
+ * [`knock translation pull [TRANSLATIONREF]`](#knock-translation-pull-translationref)
53
+ * [`knock translation push [TRANSLATIONREF]`](#knock-translation-push-translationref)
54
+ * [`knock translation validate [TRANSLATIONREF]`](#knock-translation-validate-translationref)
55
+ * [`knock whoami`](#knock-whoami)
56
+ * [`knock workflow activate WORKFLOWKEY`](#knock-workflow-activate-workflowkey)
57
+ * [`knock workflow get WORKFLOWKEY`](#knock-workflow-get-workflowkey)
58
+ * [`knock workflow list`](#knock-workflow-list)
59
+ * [`knock workflow pull [WORKFLOWKEY]`](#knock-workflow-pull-workflowkey)
60
+ * [`knock workflow push [WORKFLOWKEY]`](#knock-workflow-push-workflowkey)
61
+ * [`knock workflow run WORKFLOWKEY`](#knock-workflow-run-workflowkey)
62
+ * [`knock workflow validate [WORKFLOWKEY]`](#knock-workflow-validate-workflowkey)
63
+
64
+ ## `knock commit`
65
+
66
+ Commit all changes in development environment.
67
+
68
+ ```
69
+ USAGE
70
+ $ knock commit --service-token <value> [--environment development] [-m <value>] [--force]
71
+
72
+ FLAGS
73
+ -m, --commit-message=<value> Use the given value as the commit message.
74
+ --environment=<option> [default: development] Committing changes applies to the development environment only,
75
+ use `commit promote` to promote changes to a subsequent environment.
76
+ <options: development>
77
+ --force Remove the confirmation prompt.
78
+ --service-token=<value> (required) The service token to authenticate with.
79
+ ```
80
+
81
+ _See code: [src/commands/commit/index.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/commit/index.ts)_
82
+
83
+ ## `knock commit get ID`
84
+
85
+ Display a single commit
86
+
87
+ ```
88
+ USAGE
89
+ $ knock commit get ID --service-token <value> [--json]
90
+
91
+ FLAGS
92
+ --service-token=<value> (required) The service token to authenticate with.
93
+
94
+ GLOBAL FLAGS
95
+ --json Format output as json.
96
+ ```
97
+
98
+ _See code: [src/commands/commit/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/commit/get.ts)_
99
+
100
+ ## `knock commit list`
101
+
102
+ Display all commits in an environment
103
+
104
+ ```
105
+ USAGE
106
+ $ knock commit list --service-token <value> [--json] [--environment <value>] [--promoted] [--after <value>]
107
+ [--before <value>] [--limit <value>]
108
+
109
+ FLAGS
110
+ --after=<value> The cursor after which to fetch the next page.
111
+ --before=<value> The cursor before which to fetch the previous page.
112
+ --environment=<value> [default: development] The environment to use.
113
+ --limit=<value> The total number of entries to fetch per page.
114
+ --[no-]promoted Show only promoted or unpromoted changes between the given environment and the subsequent
115
+ environment.
116
+ --service-token=<value> (required) The service token to authenticate with.
117
+
118
+ GLOBAL FLAGS
119
+ --json Format output as json.
120
+ ```
121
+
122
+ _See code: [src/commands/commit/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/commit/list.ts)_
123
+
124
+ ## `knock commit promote`
125
+
126
+ Promote one or all commits to the subsequent environment.
127
+
128
+ ```
129
+ USAGE
130
+ $ knock commit promote --service-token <value> [--to <value>] [--force] [--only <value>]
131
+
132
+ FLAGS
133
+ --force Remove the confirmation prompt.
134
+ --only=<value> The target commit id to promote to the subsequent environment
135
+ --service-token=<value> (required) The service token to authenticate with.
136
+ --to=<value> The destination environment to promote all changes from the preceding environment.
137
+ ```
138
+
139
+ _See code: [src/commands/commit/promote.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/commit/promote.ts)_
41
140
 
42
141
  ## `knock help [COMMANDS]`
43
142
 
@@ -59,6 +158,110 @@ DESCRIPTION
59
158
 
60
159
  _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.0.14/src/commands/help.ts)_
61
160
 
161
+ ## `knock layout get EMAILLAYOUTKEY`
162
+
163
+ Display a single email layout from an environment.
164
+
165
+ ```
166
+ USAGE
167
+ $ knock layout get EMAILLAYOUTKEY --service-token <value> [--json] [--environment <value>]
168
+ [--hide-uncommitted-changes]
169
+
170
+ FLAGS
171
+ --environment=<value> [default: development] The environment to use.
172
+ --hide-uncommitted-changes Hide any uncommitted changes.
173
+ --service-token=<value> (required) The service token to authenticate with.
174
+
175
+ GLOBAL FLAGS
176
+ --json Format output as json.
177
+ ```
178
+
179
+ _See code: [src/commands/layout/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/layout/get.ts)_
180
+
181
+ ## `knock layout list`
182
+
183
+ Display all email layouts for an environment.
184
+
185
+ ```
186
+ USAGE
187
+ $ knock layout list --service-token <value> [--json] [--environment <value>] [--hide-uncommitted-changes]
188
+ [--after <value>] [--before <value>] [--limit <value>]
189
+
190
+ FLAGS
191
+ --after=<value> The cursor after which to fetch the next page.
192
+ --before=<value> The cursor before which to fetch the previous page.
193
+ --environment=<value> [default: development] The environment to use.
194
+ --hide-uncommitted-changes Hide any uncommitted changes.
195
+ --limit=<value> The total number of entries to fetch per page.
196
+ --service-token=<value> (required) The service token to authenticate with.
197
+
198
+ GLOBAL FLAGS
199
+ --json Format output as json.
200
+ ```
201
+
202
+ _See code: [src/commands/layout/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/layout/list.ts)_
203
+
204
+ ## `knock layout pull [EMAILLAYOUTKEY]`
205
+
206
+ Pull one or more email layouts from an environment into a local file system.
207
+
208
+ ```
209
+ USAGE
210
+ $ knock layout pull [EMAILLAYOUTKEY] --service-token <value> [--environment <value>] [--layouts-dir <value>
211
+ --all] [--hide-uncommitted-changes] [--force]
212
+
213
+ FLAGS
214
+ --all Whether to pull all email layouts from the specified environment.
215
+ --environment=<value> [default: development] The environment to use.
216
+ --force Remove the confirmation prompt.
217
+ --hide-uncommitted-changes Hide any uncommitted changes.
218
+ --layouts-dir=<value> The target directory path to pull all email layouts into.
219
+ --service-token=<value> (required) The service token to authenticate with.
220
+ ```
221
+
222
+ _See code: [src/commands/layout/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/layout/pull.ts)_
223
+
224
+ ## `knock layout push [EMAILLAYOUTKEY]`
225
+
226
+ Push one or more email layouts from a local file system to Knock.
227
+
228
+ ```
229
+ USAGE
230
+ $ knock layout push [EMAILLAYOUTKEY] --service-token <value> [--environment development] [--layouts-dir <value>
231
+ --all] [-m <value> --commit]
232
+
233
+ FLAGS
234
+ -m, --commit-message=<value> Use the given value as the commit message
235
+ --all Whether to push all layouts from the target directory.
236
+ --commit Push and commit the layout(s) at the same time
237
+ --environment=<option> [default: development] Pushing an email layout is only allowed in the development
238
+ environment
239
+ <options: development>
240
+ --layouts-dir=<value> The target directory path to find all layouts to push.
241
+ --service-token=<value> (required) The service token to authenticate with.
242
+ ```
243
+
244
+ _See code: [src/commands/layout/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/layout/push.ts)_
245
+
246
+ ## `knock layout validate [EMAILLAYOUTKEY]`
247
+
248
+ Validate one or more layouts from a local file system.
249
+
250
+ ```
251
+ USAGE
252
+ $ knock layout validate [EMAILLAYOUTKEY] --service-token <value> [--environment development] [--layouts-dir <value>
253
+ --all]
254
+
255
+ FLAGS
256
+ --all Whether to validate all layouts from the target directory.
257
+ --environment=<option> [default: development] Validating a layout is only done in the development environment
258
+ <options: development>
259
+ --layouts-dir=<value> The target directory path to find all layouts to validate.
260
+ --service-token=<value> (required) The service token to authenticate with.
261
+ ```
262
+
263
+ _See code: [src/commands/layout/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/layout/validate.ts)_
264
+
62
265
  ## `knock plugins`
63
266
 
64
267
  List installed plugins.
@@ -337,4 +540,297 @@ DESCRIPTION
337
540
  ```
338
541
 
339
542
  _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.3/src/commands/plugins/update.ts)_
543
+
544
+ ## `knock translation get TRANSLATIONREF`
545
+
546
+ Display a single translation from an environment.
547
+
548
+ ```
549
+ USAGE
550
+ $ knock translation get TRANSLATIONREF --service-token <value> [--json] [--environment <value>]
551
+ [--hide-uncommitted-changes]
552
+
553
+ ARGUMENTS
554
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
555
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
556
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
557
+
558
+ FLAGS
559
+ --environment=<value> [default: development] The environment to use.
560
+ --hide-uncommitted-changes Hide any uncommitted changes.
561
+ --service-token=<value> (required) The service token to authenticate with.
562
+
563
+ GLOBAL FLAGS
564
+ --json Format output as json.
565
+ ```
566
+
567
+ _See code: [src/commands/translation/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/translation/get.ts)_
568
+
569
+ ## `knock translation list`
570
+
571
+ Display all translations for an environment.
572
+
573
+ ```
574
+ USAGE
575
+ $ knock translation list --service-token <value> [--json] [--environment <value>] [--hide-uncommitted-changes]
576
+ [--after <value>] [--before <value>] [--limit <value>]
577
+
578
+ FLAGS
579
+ --after=<value> The cursor after which to fetch the next page.
580
+ --before=<value> The cursor before which to fetch the previous page.
581
+ --environment=<value> [default: development] The environment to use.
582
+ --hide-uncommitted-changes Hide any uncommitted changes.
583
+ --limit=<value> The total number of entries to fetch per page.
584
+ --service-token=<value> (required) The service token to authenticate with.
585
+
586
+ GLOBAL FLAGS
587
+ --json Format output as json.
588
+ ```
589
+
590
+ _See code: [src/commands/translation/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/translation/list.ts)_
591
+
592
+ ## `knock translation pull [TRANSLATIONREF]`
593
+
594
+ Pull one or more translations from an environment into a local file system.
595
+
596
+ ```
597
+ USAGE
598
+ $ knock translation pull [TRANSLATIONREF] --service-token <value> [--environment <value>] [--translations-dir
599
+ <value> --all] [--hide-uncommitted-changes] [--force]
600
+
601
+ ARGUMENTS
602
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
603
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
604
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
605
+
606
+ FLAGS
607
+ --all Whether to pull all translations from the specified environment.
608
+ --environment=<value> [default: development] The environment to use.
609
+ --force Remove the confirmation prompt.
610
+ --hide-uncommitted-changes Hide any uncommitted changes.
611
+ --service-token=<value> (required) The service token to authenticate with.
612
+ --translations-dir=<value> The target directory path to pull all translations into.
613
+ ```
614
+
615
+ _See code: [src/commands/translation/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/translation/pull.ts)_
616
+
617
+ ## `knock translation push [TRANSLATIONREF]`
618
+
619
+ Push one or more translations from a local file system to Knock.
620
+
621
+ ```
622
+ USAGE
623
+ $ knock translation push [TRANSLATIONREF] --service-token <value> [--environment development] [--translations-dir
624
+ <value> --all] [-m <value> --commit]
625
+
626
+ ARGUMENTS
627
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
628
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
629
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
630
+
631
+ FLAGS
632
+ -m, --commit-message=<value> Use the given value as the commit message
633
+ --all Whether to push all translations from the target directory.
634
+ --commit Push and commit the translation(s) at the same time
635
+ --environment=<option> [default: development] Pushing a translation is only allowed in the development
636
+ environment
637
+ <options: development>
638
+ --service-token=<value> (required) The service token to authenticate with.
639
+ --translations-dir=<value> The target directory path to find all translations to push.
640
+ ```
641
+
642
+ _See code: [src/commands/translation/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/translation/push.ts)_
643
+
644
+ ## `knock translation validate [TRANSLATIONREF]`
645
+
646
+ Validate one or more translations from a local file system.
647
+
648
+ ```
649
+ USAGE
650
+ $ knock translation validate [TRANSLATIONREF] --service-token <value> [--environment development] [--translations-dir
651
+ <value> --all]
652
+
653
+ ARGUMENTS
654
+ TRANSLATIONREF Translation ref is a identifier string that refers to a unique translation.
655
+ If a translation has no namespace, it is the same as the locale, e.g. `en`.
656
+ If namespaced, it is formatted as namespace.locale, e.g. `admin.en`.
657
+
658
+ FLAGS
659
+ --all Whether to validate all translations from the target directory.
660
+ --environment=<option> [default: development] Validating a translation is only done in the development
661
+ environment
662
+ <options: development>
663
+ --service-token=<value> (required) The service token to authenticate with.
664
+ --translations-dir=<value> The target directory path to find all translations to validate.
665
+ ```
666
+
667
+ _See code: [src/commands/translation/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/translation/validate.ts)_
668
+
669
+ ## `knock whoami`
670
+
671
+ Verify the provided service token.
672
+
673
+ ```
674
+ USAGE
675
+ $ knock whoami --service-token <value> [--json]
676
+
677
+ FLAGS
678
+ --service-token=<value> (required) The service token to authenticate with.
679
+
680
+ GLOBAL FLAGS
681
+ --json Format output as json.
682
+ ```
683
+
684
+ _See code: [src/commands/whoami.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/whoami.ts)_
685
+
686
+ ## `knock workflow activate WORKFLOWKEY`
687
+
688
+ Activate or deactivate a workflow in a given environment.
689
+
690
+ ```
691
+ USAGE
692
+ $ knock workflow activate WORKFLOWKEY --service-token <value> --environment <value> [--status true|false] [--force]
693
+
694
+ FLAGS
695
+ --environment=<value> (required) The environment to use.
696
+ --force Remove the confirmation prompt.
697
+ --service-token=<value> (required) The service token to authenticate with.
698
+ --status=<option> [default: true] The workflow active status to set.
699
+ <options: true|false>
700
+
701
+ DESCRIPTION
702
+ Activate or deactivate a workflow in a given environment.
703
+
704
+ This immediately enables or disables a workflow in a given environment without
705
+ needing to go through environment promotion.
706
+
707
+ By default, this command activates a given workflow. Pass in the --status flag
708
+ with `false` in order to deactivate it.
709
+ ```
710
+
711
+ _See code: [src/commands/workflow/activate.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/activate.ts)_
712
+
713
+ ## `knock workflow get WORKFLOWKEY`
714
+
715
+ Display a single workflow from an environment.
716
+
717
+ ```
718
+ USAGE
719
+ $ knock workflow get WORKFLOWKEY --service-token <value> [--json] [--environment <value>]
720
+ [--hide-uncommitted-changes]
721
+
722
+ FLAGS
723
+ --environment=<value> [default: development] The environment to use.
724
+ --hide-uncommitted-changes Hide any uncommitted changes.
725
+ --service-token=<value> (required) The service token to authenticate with.
726
+
727
+ GLOBAL FLAGS
728
+ --json Format output as json.
729
+ ```
730
+
731
+ _See code: [src/commands/workflow/get.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/get.ts)_
732
+
733
+ ## `knock workflow list`
734
+
735
+ Display all workflows for an environment.
736
+
737
+ ```
738
+ USAGE
739
+ $ knock workflow list --service-token <value> [--json] [--environment <value>] [--hide-uncommitted-changes]
740
+ [--after <value>] [--before <value>] [--limit <value>]
741
+
742
+ FLAGS
743
+ --after=<value> The cursor after which to fetch the next page.
744
+ --before=<value> The cursor before which to fetch the previous page.
745
+ --environment=<value> [default: development] The environment to use.
746
+ --hide-uncommitted-changes Hide any uncommitted changes.
747
+ --limit=<value> The total number of entries to fetch per page.
748
+ --service-token=<value> (required) The service token to authenticate with.
749
+
750
+ GLOBAL FLAGS
751
+ --json Format output as json.
752
+ ```
753
+
754
+ _See code: [src/commands/workflow/list.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/list.ts)_
755
+
756
+ ## `knock workflow pull [WORKFLOWKEY]`
757
+
758
+ Pull one or more workflows from an environment into a local file system.
759
+
760
+ ```
761
+ USAGE
762
+ $ knock workflow pull [WORKFLOWKEY] --service-token <value> [--environment <value>] [--workflows-dir <value>
763
+ --all] [--hide-uncommitted-changes] [--force]
764
+
765
+ FLAGS
766
+ --all Whether to pull all workflows from the specified environment.
767
+ --environment=<value> [default: development] The environment to use.
768
+ --force Remove the confirmation prompt.
769
+ --hide-uncommitted-changes Hide any uncommitted changes.
770
+ --service-token=<value> (required) The service token to authenticate with.
771
+ --workflows-dir=<value> The target directory path to pull all workflows into.
772
+ ```
773
+
774
+ _See code: [src/commands/workflow/pull.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/pull.ts)_
775
+
776
+ ## `knock workflow push [WORKFLOWKEY]`
777
+
778
+ Push one or more workflows from a local file system to Knock.
779
+
780
+ ```
781
+ USAGE
782
+ $ knock workflow push [WORKFLOWKEY] --service-token <value> [--environment development] [--workflows-dir <value>
783
+ --all] [-m <value> --commit]
784
+
785
+ FLAGS
786
+ -m, --commit-message=<value> Use the given value as the commit message
787
+ --all Whether to push all workflows from the target directory.
788
+ --commit Push and commit the workflow(s) at the same time
789
+ --environment=<option> [default: development] Pushing a workflow is only allowed in the development environment
790
+ <options: development>
791
+ --service-token=<value> (required) The service token to authenticate with.
792
+ --workflows-dir=<value> The target directory path to find all workflows to push.
793
+ ```
794
+
795
+ _See code: [src/commands/workflow/push.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/push.ts)_
796
+
797
+ ## `knock workflow run WORKFLOWKEY`
798
+
799
+ Test run a workflow using the latest version from Knock.
800
+
801
+ ```
802
+ USAGE
803
+ $ knock workflow run WORKFLOWKEY --service-token <value> --recipients <value> [--environment <value>] [--actor
804
+ <value>] [--tenant <value>] [--data <value>]
805
+
806
+ FLAGS
807
+ --actor=<value> An actor id, or a JSON string of an actor object reference for the workflow run.
808
+ --data=<value> A JSON string of the data for this workflow
809
+ --environment=<value> [default: development] The environment in which to run the workflow
810
+ --recipients=<value> (required) One or more recipient user ids separated by comma, or a JSON string containing one
811
+ or more recipient object references for this workflow run.
812
+ --service-token=<value> (required) The service token to authenticate with.
813
+ --tenant=<value> A tenant id for the workflow run.
814
+ ```
815
+
816
+ _See code: [src/commands/workflow/run.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/run.ts)_
817
+
818
+ ## `knock workflow validate [WORKFLOWKEY]`
819
+
820
+ Validate one or more workflows from a local file system.
821
+
822
+ ```
823
+ USAGE
824
+ $ knock workflow validate [WORKFLOWKEY] --service-token <value> [--environment development] [--workflows-dir <value>
825
+ --all]
826
+
827
+ FLAGS
828
+ --all Whether to validate all workflows from the target directory.
829
+ --environment=<option> [default: development] Validating a workflow is only done in the development environment
830
+ <options: development>
831
+ --service-token=<value> (required) The service token to authenticate with.
832
+ --workflows-dir=<value> The target directory path to find all workflows to validate.
833
+ ```
834
+
835
+ _See code: [src/commands/workflow/validate.ts](https://github.com/knocklabs/knock-cli/blob/v0.1.14/src/commands/workflow/validate.ts)_
340
836
  <!-- commandsstop -->