Skip to content

Commit 7dadadc

Browse files
github-actions[bot]chaptersixlennessyy
authored
Update CLI docs for release v1.6.2 (#4340)
Co-authored-by: Alex Stanfield <chaptersix@users.noreply.github.com> Co-authored-by: Lenny Chen <55669665+lennessyy@users.noreply.github.com>
1 parent 94ceafc commit 7dadadc

10 files changed

Lines changed: 32 additions & 26 deletions

File tree

docs/cli/activity.mdx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ This file is generated from https://github.com/temporalio/cli/blob/main/internal
2727

2828
This page provides a reference for the `temporal` CLI `activity` command. The flags applicable to each subcommand are presented in a table within the heading for the subcommand. Refer to [Global Flags](#global-flags) for flags that you can use with every subcommand.
2929

30-
To use the CLI with Standalone Activities, see the CLI commands in the [Go](/docs/develop/go/standalone-activities.mdx), [Python](/docs/develop/python/standalone-activities.mdx), and [.NET](/docs/develop/dotnet/standalone-activities.mdx) Standalone Activity guides.
31-
3230
## complete
3331

3432
Complete an Activity, marking it as successfully finished. Specify the
@@ -116,7 +114,7 @@ activity timeout, as well as, optionally, the
116114

117115
If the activity may be executing (i.e. it has not yet timed out), the
118116
reset will take effect the next time it fails, heartbeats, or times out.
119-
If it is waiting for a retry (i.e. has failed or timed out), the reset
117+
If is waiting for a retry (i.e. has failed or timed out), the reset
120118
will apply immediately.
121119

122120
If the activity is already paused, it will be unpaused by default.
@@ -138,7 +136,7 @@ reset, handle this error and then re-throw it when you've cleaned up.
138136

139137
If the `reset_heartbeats` flag is set, the heartbeat details will also be cleared.
140138

141-
Specify the Activity Type or ID and Workflow IDs:
139+
Specify the Activity Type of ID and Workflow IDs:
142140

143141
```
144142
temporal activity reset \
@@ -163,12 +161,12 @@ Use the following options to change the behavior of this command. You can also u
163161
| Flag | Required | Description |
164162
|------|----------|-------------|
165163
| `--activity-id`, `-a` | No | **string** The Activity ID to reset. Mutually exclusive with `--query`, `--match-all`, and `--activity-type`. Requires `--workflow-id` to be specified. |
166-
| `--activity-type` | No | **string** Activities of this Type will be reset. Mutually exclusive with `--match-all` and `activity-id`. |
164+
| `--activity-type` | No | **string** Activities of this Type will be reset. Mutually exclusive with `--match-all` and `activity-id`. Note: Resetting Activity by Type is an experimental feature and may change in the future. |
167165
| `--headers` | No | **string[]** Temporal workflow headers in 'KEY=VALUE' format. Keys must be identifiers, and values must be JSON values. May be passed multiple times to set multiple Temporal headers. Note: These are workflow headers, not gRPC headers. |
168166
| `--jitter` | No | **duration** The activity will reset at random a time within the specified duration. Can only be used with --query. |
169167
| `--keep-paused` | No | **bool** If the activity was paused, it will stay paused. |
170-
| `--match-all` | No | **bool** Every activity should be reset. Every activity should be updated. Mutually exclusive with `--activity-id` and `--activity-type`. |
171-
| `--query`, `-q` | No | **string** Content for an SQL-like `QUERY` List Filter. You must set either --workflow-id or --query. |
168+
| `--match-all` | No | **bool** Every activity should be reset. Every activity should be updated. Mutually exclusive with `--activity-id` and `--activity-type`. Note: This is an experimental feature and may change in the future. |
169+
| `--query`, `-q` | No | **string** Content for an SQL-like `QUERY` List Filter. You must set either --workflow-id or --query. Note: Using --query for batch activity operations is an experimental feature and may change in the future. |
172170
| `--reason` | No | **string** Reason for batch operation. Only use with --query. Defaults to user name. |
173171
| `--reset-attempts` | No | **bool** Reset the activity attempts. |
174172
| `--reset-heartbeats` | No | **bool** Reset the Activity's heartbeats. Only works with --reset-attempts. |
@@ -220,11 +218,11 @@ Use the following options to change the behavior of this command. You can also u
220218
| Flag | Required | Description |
221219
|------|----------|-------------|
222220
| `--activity-id`, `-a` | No | **string** The Activity ID to unpause. Mutually exclusive with `--query`, `--match-all`, and `--activity-type`. Requires `--workflow-id` to be specified. |
223-
| `--activity-type` | No | **string** Activities of this Type will unpause. Can only be used without --match-all. Either `activity-id` or `activity-type` must be provided, but not both. |
221+
| `--activity-type` | No | **string** Activities of this Type will unpause. Can only be used without --match-all. Either `activity-id` or `activity-type` must be provided, but not both. Note: Unpausing Activity by Type is an experimental feature and may change in the future. |
224222
| `--headers` | No | **string[]** Temporal workflow headers in 'KEY=VALUE' format. Keys must be identifiers, and values must be JSON values. May be passed multiple times to set multiple Temporal headers. Note: These are workflow headers, not gRPC headers. |
225223
| `--jitter` | No | **duration** The activity will start at random a time within the specified duration. Can only be used with --query. |
226-
| `--match-all` | No | **bool** Every paused activity should be unpaused. This flag is ignored if activity-type is provided. |
227-
| `--query`, `-q` | No | **string** Content for an SQL-like `QUERY` List Filter. You must set either --workflow-id or --query. |
224+
| `--match-all` | No | **bool** Every paused activity should be unpaused. This flag is ignored if activity-type is provided. Note: This is an experimental feature and may change in the future. |
225+
| `--query`, `-q` | No | **string** Content for an SQL-like `QUERY` List Filter. You must set either --workflow-id or --query. Note: Using --query for batch activity operations is an experimental feature and may change in the future. |
228226
| `--reason` | No | **string** Reason for batch operation. Only use with --query. Defaults to user name. |
229227
| `--reset-attempts` | No | **bool** Reset the activity attempts. |
230228
| `--reset-heartbeats` | No | **bool** Reset the Activity's heartbeats. Only works with --reset-attempts. |
@@ -273,11 +271,11 @@ Use the following options to change the behavior of this command. You can also u
273271
| Flag | Required | Description |
274272
|------|----------|-------------|
275273
| `--activity-id`, `-a` | No | **string** The Activity ID to update options. Mutually exclusive with `--query`, `--match-all`, and `--activity-type`. Requires `--workflow-id` to be specified. |
276-
| `--activity-type` | No | **string** Activities of this Type will be updated. Mutually exclusive with `--match-all` and `activity-id`. |
274+
| `--activity-type` | No | **string** Activities of this Type will be updated. Mutually exclusive with `--match-all` and `activity-id`. Note: Updating Activity options by Type is an experimental feature and may change in the future. |
277275
| `--headers` | No | **string[]** Temporal workflow headers in 'KEY=VALUE' format. Keys must be identifiers, and values must be JSON values. May be passed multiple times to set multiple Temporal headers. Note: These are workflow headers, not gRPC headers. |
278276
| `--heartbeat-timeout` | No | **duration** Maximum permitted time between successful worker heartbeats. |
279-
| `--match-all` | No | **bool** Every activity should be updated. Mutually exclusive with `--activity-id` and `--activity-type`. |
280-
| `--query`, `-q` | No | **string** Content for an SQL-like `QUERY` List Filter. You must set either --workflow-id or --query. |
277+
| `--match-all` | No | **bool** Every activity should be updated. Mutually exclusive with `--activity-id` and `--activity-type`. Note: This is an experimental feature and may change in the future. |
278+
| `--query`, `-q` | No | **string** Content for an SQL-like `QUERY` List Filter. You must set either --workflow-id or --query. Note: Using --query for batch activity operations is an experimental feature and may change in the future. |
281279
| `--reason` | No | **string** Reason for batch operation. Only use with --query. Defaults to user name. |
282280
| `--restore-original-options` | No | **bool** Restore the original options of the activity. |
283281
| `--retry-backoff-coefficient` | No | **float** 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. |
@@ -316,7 +314,7 @@ The following options can be used with any command.
316314
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
317315
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
318316
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
319-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
317+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
320318
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
321319
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
322320
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/batch.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ The following options can be used with any command.
9696
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
9797
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
9898
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
99-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
99+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
100100
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
101101
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
102102
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/config.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ The following options can be used with any command.
121121
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
122122
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
123123
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
124-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
124+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
125125
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
126126
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
127127
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/env.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ The following options can be used with any command.
132132
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
133133
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
134134
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
135-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
135+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
136136
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
137137
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
138138
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/operator.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ The following options can be used with any command.
540540
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
541541
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
542542
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
543-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
543+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
544544
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
545545
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
546546
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/schedule.mdx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,16 @@ temporal schedule update \
254254
--workflow-type "NewWorkflowType"
255255
```
256256

257+
This command performs a full replacement of the Schedule
258+
configuration. Any options not provided will be reset to their default
259+
values. You must re-specify all options, not just the ones you want to
260+
change. To view the current configuration of a Schedule, use
261+
`temporal schedule describe` before updating.
262+
263+
Schedule memo and search attributes cannot be updated with this
264+
command. They are set only during Schedule creation and are not affected
265+
by updates.
266+
257267
Use the following options to change the behavior of this command. You can also use any of the [global flags](#global-flags) that apply to all subcommands.
258268

259269
| Flag | Required | Description |
@@ -281,8 +291,6 @@ Use the following options to change the behavior of this command. You can also u
281291
| `--remaining-actions` | No | **int** Total allowed actions. Default is zero (unlimited). |
282292
| `--run-timeout` | No | **duration** Fail a Workflow Run if it lasts longer than `DURATION`. |
283293
| `--schedule-id`, `-s` | Yes | **string** Schedule ID. |
284-
| `--schedule-memo` | No | **string[]** Set schedule memo using `KEY="VALUE` pairs. Keys must be identifiers, and values must be JSON values. For example: `'YourKey={"your": "value"}'`. Can be passed multiple times. |
285-
| `--schedule-search-attribute` | No | **string[]** Set schedule Search Attributes using `KEY="VALUE` pairs. Keys must be identifiers, and values must be JSON values. For example: `'YourKey={"your": "value"}'`. Can be passed multiple times. |
286294
| `--search-attribute` | No | **string[]** Search Attribute in `KEY=VALUE` format. Keys must be identifiers, and values must be JSON values. For example: `'YourKey={"your": "value"}'`. Can be passed multiple times. |
287295
| `--start-time` | No | **timestamp** Schedule start time. |
288296
| `--static-details` | No | **string** Static Workflow details for human consumption in UIs. Uses Temporal Markdown formatting, may be multiple lines. _(Experimental)_ |
@@ -316,7 +324,7 @@ The following options can be used with any command.
316324
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
317325
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
318326
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
319-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
327+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
320328
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
321329
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
322330
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/server.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ The following options can be used with any command.
106106
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
107107
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
108108
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
109-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
109+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
110110
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
111111
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
112112
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

docs/cli/task-queue.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ The following options can be used with any command.
693693
| `--grpc-meta` | No | **string[]** HTTP headers for requests. Format as a `KEY=VALUE` pair. May be passed multiple times to set multiple headers. Can also be made available via environment variable as `TEMPORAL_GRPC_META_[name]`. | |
694694
| `--identity` | No | **string** The identity of the user or client submitting this request. Defaults to "temporal-cli:$USER@$HOST". | |
695695
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
696-
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for `server start-dev`. Accepted values: debug, info, warn, error, never. | `info` |
696+
| `--log-level` | No | **string-enum** Log level. Default is "info" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `info` |
697697
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
698698
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
699699
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |

0 commit comments

Comments
 (0)