-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathcommands.yaml
More file actions
5193 lines (4628 loc) · 170 KB
/
commands.yaml
File metadata and controls
5193 lines (4628 loc) · 170 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# This document is automatically parsed.
# Follow these rules.
# IN-HOUSE STYLE
# * Wording and grammar:
# * Run a spell check.
# * Be clear and concise.
# * Don't reword the command in the summary. Use distinct supplementary language.
# * Yes: temporal workflow delete: Remove Workflow Execution
# * No: temporal workflow delete: Delete Workflow
# * Re-use and adapt existing wording and phrases wherever possible.
# * Word command summaries as if they began "This command will..."
# Use sentence casing for the summary.
# * ID is fully capitalized in text ("the Workflow ID") and Id in
# [metasyntax](https://en.wikipedia.org/wiki/Metasyntactic_variable) (YourWorkflowId).
# * Avoid parentheticals unless absolutely necessary.
# * Wrapping:
# * Assume a user-visible line length of 80 characters max. `fmt -w 78` can help.
# * Long descriptions must be pre-wrapped.
# * When declaring Options follow the wrapping style used elsewhere in this file.
# Splitting the items into multiple lines improves maintainability with clearer diffs.
# * Punctuation:
# * End description blocks with a period.
# Do _not_ use periods for summaries.
# * Introduce triple-quoted code-fenced samples with a colons.
# Avoid using 'for example' unless there's no other way to introduce code.
# * Code, flags, and keys:
# * Demonstrate at least one example invocation of the command in every long description.
# * Include the most commonly used patterns in long descriptions so users don't
# have to call help at multiple invocation levels.
# * Avoid deprecated period-delineated versions of environment-specific keys.
# * Yes:
# ```
# temporal env set \
# --env prod \
# --key tls-cert-path \
# --value /home/my-user/certs/cluster.cert
# ```
# * No: `temporal env set prod.tls-cert-path /home/my-user/certs/cluster.cert`.
# * Split invocation samples to multiple lines.
# Use one option or flag per line, as in the above example.
# Use a single space and a backslash to continue the invocation.
# Use 4-space indentation.
# * Always use long options and flags for invocation examples.
# * Yes: `--namespace`
# * No: `-n`
# * When commands have a single command-level option, include it the mandatory example.
# * Use square bracket overviews to present how complex commands will be used.
# * Yes: temporal operator [command] [subcommand] [options]
# Commands with subcommands can't be run on their own unless
# subcommands-optional is set to true.
# Because of this, always use full command examples.
# * Use square brackets to highlight optional elements, especially when long
# descriptions would suffer from two very similar command invocations.
# * Yes: temporal operator cluster describe [--detail]
# * Use YourEnvironment, YourNamespace, etc. as unquoted metasyntactic variable
# stand-ins.
# Respectful metasyntax describes the role of the stand-in.
# * Yes: --workflow-id YourWorkflowId
# * No: --workflow-id your-work-id, --workflow-id "
# * For JSON input, use single quotes to encase interior double quotes.
# Otherwise, in the rare case it is needed, prefer double quotes.
# * When presenting options use a space rather than equal to set them.
# This is more universally supported and consistent with POSIX guidelines.
# * Yes: `temporal command --namespace YourNamespace`.
# * No: `temporal command --namespace=YourNamespace`.
# Note: in this utility's current incarnation, Boolean options must be
# set with an equal sign.
# Since Booleans can be treated like flags, avoid using assigned values in samples.
# * Yes: `--detail`
# * No: `--detail=true`
# For options and flags:
# * When options and flags can be passed multiple times, say so explicitly in
# the usage text: "Can be passed multiple times."
# * Never rely on the flag type (e.g. `string`, `bool`, etc.) being shown to the user.
# It is replaced/hidden when a `META-VARIABLE` is used.
# * Where possible, use a `META-VARIABLE` (all caps and wrapped in `\``s) to
# describe/reference content passed to an option.
# * Limit `code spans` to meta-variables.
# To reference other options or specify literal values, use double quotes.
# COMMAND ENTRY OVERVIEW
# A Command entry uses the following format:
# - name: The full command path with parent commands. (string)
# summary: A concise command explanation. (string)
# description: A detailed command explanation. (string)
# has-init: invokes `initCommand` method. (bool)
# exact-args: Require this exact number of args. (int)
# maximum-args: Require this maximum number of args. (int)
# ignores-missing-env: Ignore missing environment variables. (bool)
# subcommands-optional: Allow command to be run even when it has subcommands. (bool)
# options: A list of options. (Option[])
# - name: The option name. (string)
# type: The option type. (string)
# display-type: Optional custom description for displaying the type in the help (string)
# description: The option description. (string)
# required: Whether the option is required. (bool)
# short: The single letter short version of name (i.e. a for address). (string)
# implied-env: Documents the environment variable in the help text.
# Environment variable binding must be done manually in code.
# default: The default value. No default means zero value of the type. (string)
# enum-values: A list of possible values for the string-enum type. (string[])
# aliases: A list of aliases for the option. (string[])
# hidden: Hides the option from help output. (bool)
# option-sets: A list of option sets. (string[])
# * name, summary, and descrption are required fields. All other fields are optional.
# * Available option types are `bool`, `duration`, `int`, `float`, `string`, `string[]`,
# `string-enum`, `string-enum[]`, or `timestamp`.
# * Include a new-line after each command entry.
# OPTION SET OVERVIEW
# An options set declaration is the equivalent of pasting those options into the
# bulleted options list.
# - name: The name of the option set. (string)
# options: A list of options. Same template as Command options above (Option[])
# Options that are similar but slightly different don't need to be in option sets.
# Reserve option sets for when the behavior of the option is the same across commands.
# * Include a new-line after each option set.
commands:
- name: temporal
summary: Temporal command-line interface and development server
description: |
The Temporal CLI manages, monitors, and debugs Temporal apps. It lets you run
a local Temporal Service, start Workflow Executions, pass messages to running
Workflows, inspect state, and more.
* Start a local development service:
`temporal server start-dev`
* View help: pass `--help` to any command:
`temporal activity complete --help`
has-init: true
option-sets:
- common
- name: temporal activity
summary: Operate on Activity Executions
description: |
Perform operations on Activity Executions.
option-sets:
- client
docs:
description-header: >-
Learn how to use Temporal Activity commands to perform operations on Activity Executions.
keywords:
- activity
- activity start
- activity execute
- activity describe
- activity list
- activity count
- activity cancel
- activity terminate
- activity execution
- activity complete
- activity update-options
- activity fail
- activity pause
- activity unpause
- activity reset
- cli reference
- cli-feature
- command-line-interface-cli
- temporal cli
tags:
- Activities
- Temporal CLI
- name: temporal activity cancel
summary: Request cancellation of a Standalone Activity (Experimental)
description: |
Request cancellation of a Standalone Activity.
```
temporal activity cancel \
--activity-id YourActivityId
```
Requesting cancellation transitions the Activity's run state
to CancelRequested. If the Activity is heartbeating, a
cancellation error will be raised when the next heartbeat
response is received; if the Activity allows this error to
propagate, the Activity transitions to canceled status.
option-sets:
- activity-reference
options:
- name: reason
type: string
description: Reason for cancellation.
- name: temporal activity complete
summary: Mark an activity as completed successfully with a result
description: |
Complete an Activity, marking it as successfully finished. Specify the
Activity ID and include a JSON result for the returned value:
```
temporal activity complete \
--activity-id YourActivityId \
--workflow-id YourWorkflowId \
--input '{"YourResultKey": "YourResultVal"}'
```
options:
- name: activity-id
short: a
type: string
description: |
Activity ID. This may be the ID of an Activity
invoked by a Workflow, or of a Standalone Activity.
required: true
- name: workflow-id
type: string
short: w
description: |
Workflow ID. Required for workflow Activities.
Omit for Standalone Activities.
- name: run-id
type: string
short: r
description: |
Run ID. For workflow Activities (when --workflow-id is
provided), this is the Workflow Run ID. For Standalone
Activities, this is the Activity Run ID.
option-sets:
- payload-input
- name: temporal activity count
summary: Count Standalone Activities matching a query (Experimental)
description: |
Return a count of Standalone Activities. Use `--query` to filter
the activities to be counted.
```
temporal activity count \
--query 'ActivityType="YourActivity"'
```
Visit https://docs.temporal.io/visibility to read more about
Search Attributes and queries.
options:
- name: query
type: string
short: q
description: |
Query to filter Activity Executions to count.
- name: temporal activity describe
summary: Show detailed info for a Standalone Activity (Experimental)
description: |
Display information about a Standalone Activity.
```
temporal activity describe \
--activity-id YourActivityId
```
option-sets:
- activity-reference
options:
- name: raw
type: bool
description: Print properties without changing their format.
- name: temporal activity execute
summary: Start a new Standalone Activity and wait for its result (Experimental)
description: |
Start a new Standalone Activity and block until it completes.
The result is output to stdout.
```
temporal activity execute \
--activity-id YourActivityId \
--type YourActivity \
--task-queue YourTaskQueue \
--start-to-close-timeout 30s \
--input '{"some-key": "some-value"}'
```
option-sets:
- activity-start
- payload-input
- name: temporal activity fail
summary: Mark an Activity as completed unsuccessfully with an error
description: |
Fail an Activity, marking it as having encountered an error:
```
temporal activity fail \
--activity-id YourActivityId \
--workflow-id YourWorkflowId
```
options:
- name: activity-id
short: a
type: string
description: |
Activity ID. This may be the ID of an Activity
invoked by a Workflow, or of a Standalone Activity.
required: true
- name: workflow-id
type: string
short: w
description: |
Workflow ID. Required for workflow Activities.
Omit for Standalone Activities.
- name: run-id
type: string
short: r
description: |
Run ID. For workflow Activities (when --workflow-id is
provided), this is the Workflow Run ID. For Standalone
Activities, this is the Activity Run ID.
- name: detail
type: string
description: |
Failure detail (JSON). Attached as the failure details
payload.
- name: reason
type: string
description: |
Failure reason. Attached as the failure message.
- name: temporal activity list
summary: List Standalone Activities matching a query (Experimental)
description: |
List Standalone Activities. Use `--query` to filter results.
```
temporal activity list \
--query 'ActivityType="YourActivity"'
```
Visit https://docs.temporal.io/visibility to read more about
Search Attributes and queries.
options:
- name: query
short: q
type: string
description: |
Query to filter the Activity Executions to list.
- name: limit
type: int
description: |
Maximum number of Activity Executions to display.
- name: page-size
type: int
description: |
Maximum number of Activity Executions to fetch
at a time from the server.
- name: temporal activity update-options
summary: Change the values of options affecting a running Activity
description: |
Update the options of a running Activity that were passed into it from
a Workflow. Updates are incremental, only changing the specified options.
Not supported for Standalone Activities.
For example:
```
temporal activity update-options \
--activity-id YourActivityId \
--workflow-id YourWorkflowId \
--task-queue NewTaskQueueName \
--schedule-to-close-timeout DURATION \
--schedule-to-start-timeout DURATION \
--start-to-close-timeout DURATION \
--heartbeat-timeout DURATION \
--retry-initial-interval DURATION \
--retry-maximum-interval DURATION \
--retry-backoff-coefficient NewBackoffCoefficient \
--retry-maximum-attempts NewMaximumAttempts
```
You may follow this command with `temporal activity reset`, and the new values will apply after the reset.
Either `--activity-id` or `--query` must be specified.
Activity options can be updated in bulk with a visibility query list filter:
```
temporal activity update-options \
--query 'WorkflowType="YourWorkflow"' \
--task-queue NewTaskQueueName
```
options:
- name: activity-id
short: a
type: string
description: |
The Activity ID to update options. Mutually exclusive with `--query`. Requires `--workflow-id` to be specified.
- name: task-queue
type: string
description: Name of the task queue for the Activity.
- name: schedule-to-close-timeout
type: duration
description: |
Indicates how long the caller is willing to wait for an activity
completion.
Limits how long retries will be attempted.
- name: schedule-to-start-timeout
type: duration
description: |
Limits time an activity task can stay in a task queue before a worker
picks it up.
This timeout is always non retryable, as all a retry would achieve is
to put it back into the same
queue. Defaults to the schedule-to-close timeout or workflow execution
timeout if not specified.
- name: start-to-close-timeout
type: duration
description: |
Maximum time an activity is allowed to execute after being picked up
by a worker. This timeout is always retryable.
- name: heartbeat-timeout
type: duration
description: |
Maximum permitted time between successful worker heartbeats.
- name: retry-initial-interval
type: duration
description: |
Interval of the first retry. If retryBackoffCoefficient is 1.0 then it
is used for all retries.
- name: retry-maximum-interval
type: duration
description: |
Maximum interval between retries. Exponential backoff leads to
interval increase.
This value is the cap of the increase.
- name: retry-backoff-coefficient
type: float
description: |
Coefficient used to calculate the next retry interval.
The next retry interval is previous interval multiplied by the backoff
coefficient.
Must be 1 or larger.
- name: retry-maximum-attempts
type: int
description: |
Maximum number of attempts. When exceeded the retries stop even if not
expired yet.
Setting this value to 1 disables retries. Setting this value to 0
means unlimited attempts(up to the timeouts).
- name: restore-original-options
type: bool
description: Restore the original options of the activity.
option-sets:
- single-activity-or-batch
- name: temporal activity pause
summary: Pause an Activity
description: |
Pause an Activity. Not supported for Standalone Activities.
If the Activity is not currently running (e.g. because it previously
failed), it will not be run again until it is unpaused.
However, if the Activity is currently running, it will run until the next
time it fails, completes, or times out, at which point the pause will kick in.
If the Activity is on its last retry attempt and fails, the failure will
be returned to the caller, just as if the Activity had not been paused.
Specify the Activity and Workflow IDs:
```
temporal activity pause \
--activity-id YourActivityId \
--workflow-id YourWorkflowId
```
To later unpause the activity, see [unpause](#unpause). You may also want to
[reset](#reset) the activity to unpause it while also starting it from the beginning.
options:
- name: activity-id
short: a
type: string
description: The Activity ID to pause. Required.
- name: identity
type: string
description: The identity of the user or client submitting this request.
- name: reason
type: string
description: Reason for pausing the Activity.
option-sets:
- workflow-reference
- name: temporal activity unpause
summary: Unpause an Activity
description: |
Re-schedule a previously-paused Activity for execution.
Not supported for Standalone Activities.
If the Activity is not running and is past its retry timeout, it will be
scheduled immediately. Otherwise, it will be scheduled after its retry
timeout expires.
Use `--reset-attempts` to reset the number of previous run attempts to
zero. For example, if an Activity is near the maximum number of attempts
N specified in its retry policy, `--reset-attempts` will allow the
Activity to be retried another N times after unpausing.
Use `--reset-heartbeat` to reset the Activity's heartbeats.
Either `--activity-id` (with `--workflow-id`) or `--query` must be specified.
Specify the Activity and Workflow IDs:
```
temporal activity unpause \
--activity-id YourActivityId \
--workflow-id YourWorkflowId
--reset-attempts
--reset-heartbeats
```
Activities can be unpaused in bulk via a visibility Query list filter:
```
temporal activity unpause \
--query 'TemporalPauseInfo IS NOT NULL'
```
options:
- name: activity-id
short: a
type: string
description: |
The Activity ID to unpause. Mutually exclusive with `--query`. Requires `--workflow-id` to be specified.
- name: reset-attempts
type: bool
description: Reset the activity attempts.
- name: reset-heartbeats
type: bool
description: Reset the Activity's heartbeats.
- name: jitter
type: duration
description: |
The activity will start at random a time within the specified duration.
Can only be used with --query.
option-sets:
- single-activity-or-batch
- name: temporal activity reset
summary: Reset an Activity
description: |
Reset an activity. Not supported for Standalone Activities.
This restarts the activity as if it were first being
scheduled. That is, it will reset both the number of attempts and the
activity timeout, as well as, optionally, the
[heartbeat details](#reset-heartbeats).
If the activity may be executing (i.e. it has not yet timed out), the
reset will take effect the next time it fails, heartbeats, or times out.
If is waiting for a retry (i.e. has failed or timed out), the reset
will apply immediately.
If the activity is already paused, it will be unpaused by default.
You can specify `keep_paused` to prevent this.
If the activity is paused and the `keep_paused` flag is not provided,
it will be unpaused. If the activity is paused and `keep_paused` flag
is provided - it will stay paused.
Either `--activity-id` (with `--workflow-id`) or `--query` must be specified.
### Resetting activities that heartbeat {#reset-heartbeats}
Activities that heartbeat will receive a [Canceled failure](/references/failures#cancelled-failure)
the next time they heartbeat after a reset.
If, in your Activity, you need to do any cleanup when an Activity is
reset, handle this error and then re-throw it when you've cleaned up.
If the `reset_heartbeats` flag is set, the heartbeat details will also be cleared.
Specify the Activity and Workflow IDs:
```
temporal activity reset \
--activity-id YourActivityId \
--workflow-id YourWorkflowId
--keep-paused
--reset-heartbeats
```
Activities can be reset in bulk with a visibility query list filter:
```
temporal activity reset \
--query 'WorkflowType="YourWorkflow"'
```
options:
- name: activity-id
short: a
type: string
description: The Activity ID to reset. Mutually exclusive with `--query`. Requires `--workflow-id` to be specified.
- name: keep-paused
type: bool
description: If the activity was paused, it will stay paused.
- name: reset-attempts
type: bool
description: Reset the activity attempts.
- name: reset-heartbeats
type: bool
description: Reset the Activity's heartbeats.
- name: jitter
type: duration
description: |
The activity will reset at random a time within the specified duration.
Can only be used with --query.
- name: restore-original-options
type: bool
description: |
Restore the original options of the activity.
option-sets:
- single-activity-or-batch
- name: temporal activity result
summary: Wait for and output the result of a Standalone Activity (Experimental)
description: |
Wait for a Standalone Activity to complete and output the
result.
```
temporal activity result \
--activity-id YourActivityId
```
option-sets:
- activity-reference
- name: temporal activity start
summary: Start a new Standalone Activity (Experimental)
description: |
Start a new Standalone Activity. Outputs the Activity ID and
Run ID.
```
temporal activity start \
--activity-id YourActivityId \
--type YourActivity \
--task-queue YourTaskQueue \
--start-to-close-timeout 5m \
--input '{"some-key": "some-value"}'
```
option-sets:
- activity-start
- payload-input
- name: temporal activity terminate
summary: Forcefully end a Standalone Activity (Experimental)
description: |
Terminate a Standalone Activity.
```
temporal activity terminate \
--activity-id YourActivityId \
--reason YourReason
```
Activity code cannot see or respond to terminations.
option-sets:
- activity-reference
options:
- name: reason
type: string
description: |
Reason for termination.
Defaults to a message with the current user's name.
- name: temporal batch
summary: Manage running batch jobs
description: |
List or terminate running batch jobs.
A batch job executes a command on multiple Workflow Executions at once. Create
batch jobs by passing `--query` to commands that support it. For example, to
create a batch job to cancel a set of Workflow Executions:
```
temporal workflow cancel \
--query 'ExecutionStatus = "Running" AND WorkflowType="YourWorkflow"' \
--reason "Testing"
```
Query Quick Reference:
```
+----------------------------------------------------------------------------+
| Composition: |
| - Data types: String literals with single or double quotes, |
| Numbers (integer and floating point), Booleans |
| - Comparison: '=', '!=', '>', '>=', '<', '<=' |
| - Expressions/Operators: 'IN array', 'BETWEEN value AND value', |
| 'STARTS_WITH string', 'IS NULL', 'IS NOT NULL', 'expr AND expr', |
| 'expr OR expr', '( expr )' |
| - Array: '( comma-separated-values )' |
| |
| Please note: |
| - Wrap attributes with backticks if it contains characters not in |
| [a-zA-Z0-9]. |
| - STARTS_WITH is only available for Keyword search attributes. |
+----------------------------------------------------------------------------+
```
Visit https://docs.temporal.io/visibility to read more about Search Attributes
and Query creation.
option-sets:
- client
docs:
description-header: >-
Use Temporal CLI to manage multiple Workflow Executions with Batch
Jobs that can Cancel, Signal, or Terminate Workflows. Filter and monitor
Batch Jobs effectively.
keywords:
- batch
- batch describe
- batch list
- batch terminate
- cli reference
- cli-feature
- command-line-interface-cli
- temporal cli
tags:
- Temporal CLI
- name: temporal batch describe
summary: Show batch job progress
description: |
Show the progress of an ongoing batch job. Pass a valid job ID to display its
information:
```
temporal batch describe \
--job-id YourJobId
```
options:
- name: job-id
type: string
description: Batch job ID.
required: true
- name: temporal batch list
summary: List all batch jobs
description: |
Return a list of batch jobs on the Service or within a single Namespace. For
example, list the batch jobs for "YourNamespace":
```
temporal batch list \
--namespace YourNamespace
```
options:
- name: limit
type: int
description: Maximum number of batch jobs to display.
- name: temporal batch terminate
summary: Forcefully end a batch job
description: |
Terminate a batch job with the provided job ID. You must provide a reason for
the termination. The Service stores this explanation as metadata for the
termination event for later reference:
```
temporal batch terminate \
--job-id YourJobId \
--reason YourTerminationReason
```
options:
- name: job-id
type: string
description: Job ID to terminate.
required: true
- name: reason
type: string
description: Reason for terminating the batch job.
required: true
- name: temporal config
summary: Manage config files (EXPERIMENTAL)
description: |
Config files are TOML files that contain profiles, with each profile
containing configuration for connecting to Temporal.
```
temporal config set \
--prop address \
--value us-west-2.aws.api.temporal.io:7233
```
The default config file path is `$CONFIG_PATH/temporalio/temporal.toml` where
`$CONFIG_PATH` is defined as `$HOME/.config` on Unix,
`$HOME/Library/Application Support` on macOS, and `%AppData%` on Windows.
This can be overridden with the `TEMPORAL_CONFIG_FILE` environment
variable or `--config-file`.
The default profile is `default`. This can be overridden with the
`TEMPORAL_PROFILE` environment variable or `--profile`.
docs:
description-header: >-
Temporal CLI 'config' commands allow the getting, setting, deleting, and
listing of configuration properties for connecting to Temporal.
keywords:
- cli reference
- command-line-interface-cli
- configuration
- config
- config delete
- config get
- config list
- config set
- environment
- temporal cli
tags:
- Temporal CLI
- name: temporal config delete
summary: |
Delete a config file property (EXPERIMENTAL)
description: |
Remove a property within a profile.
```
temporal config delete \
--prop tls.client_cert_path
```
options:
- name: prop
short: p
type: string
description: |
Specific property to delete. If unset, deletes entire profile.
required: true
- name: temporal config delete-profile
summary: |
Delete an entire config profile (EXPERIMENTAL)
description: |
Remove a full profile entirely. The `--profile` must be set explicitly.
```
temporal config delete-profile \
--profile my-profile
```
- name: temporal config get
summary: Show config file properties (EXPERIMENTAL)
description: |
Display specific properties or the entire profile.
```
temporal config get \
--prop address
```
or
```
temporal config get
```
options:
- name: prop
short: p
type: string
description: Specific property to get.
- name: temporal config list
summary: Show config file profiles (EXPERIMENTAL)
description: |
List profile names in the config file.
```
temporal config list
```
- name: temporal config set
summary: Set config file properties (EXPERIMENTAL)
description: |
Assign a value to a property and store it in the config file:
```
temporal config set \
--prop address \
--value us-west-2.aws.api.temporal.io:7233
```
options:
- name: prop
short: p
type: string
description: Property name.
required: true
- name: value
short: v
type: string
description: Property value.
required: true
- name: temporal worker
summary: Read or update Worker state
description: |
Modify or read state associated with a Worker, for example,
using Worker Deployments commands:
```
temporal worker deployment
```
option-sets:
- client
docs:
description-header: >-
Learn how to read or modify state associated with a Worker,
such as Worker Deployments.
keywords:
- worker
- worker deployment
- worker list
- worker describe
tags:
- Temporal CLI
- name: temporal worker deployment
summary: Describe, list, and operate on Worker Deployments and Versions
description: |
Deployment commands perform operations on Worker Deployments:
```
temporal worker deployment [command] [options]
```
For example:
```
temporal worker deployment list
```
Lists the Deployments in the client's namespace.
Arguments can be Worker Deployment Versions associated with
a Deployment, specified using the Deployment name and Build ID.
For example:
```
temporal worker deployment set-current-version \
--deployment-name YourDeploymentName --build-id YourBuildID
```
Sets the current Deployment Version for a given Deployment.
docs:
description-header: >-
Temporal Deployment commands enable operations on Worker Deployments
that simplify versioning and management of workers,
such as describe, list, delete, and also operations that refer to Worker
Deployment Versions within them, such as describe-version,
delete-version, set-current-version, or set-ramping-version.
keywords:
- worker deployment
- worker deployment create
- worker deployment describe
- worker deployment list
- worker deployment delete
- worker deployment create-version
- worker deployment describe-version
- worker deployment set-current-version
- worker deployment set-ramping-version
- worker deployment delete-version
- worker deployment update-version-metadata
- worker deployment manager-identity
- name: temporal worker deployment create
summary: Create a new Worker Deployment
description: |
Create a new Worker Deployment:
```
temporal worker deployment create [options]
```
Worker Deployments are lazily created the first time a Worker polls the
Temporal Server and specifies a VersionOverride. However, if you need to
pre-define a compute configuration (for instance to set up a serverless
Worker), you need to call `temporal worker deployment create-version` and
pass in the name of the Worker Deployment. The `temporal worker
deployment create` command allows you to pre-define a Worker Deployment
so that calls to `temporal worker deployment create-version` will
succeed.
If a Worker Deployment with the supplied name already exists, this