Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
248 changes: 178 additions & 70 deletions docs/cli/command-reference/activity.mdx

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/cli/command-reference/batch.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
id: batch
title: Temporal CLI batch command reference
sidebar_label: batch
description: Use Temporal CLI to manage multiple Workflow Executions with Batch Jobs that can Cancel, Signal, or Terminate Workflows. Filter and monitor Batch Jobs effectively.
description: Use Temporal CLI to manage multiple Workflow or Standalone Activity Executions with Batch Jobs. Filter and monitor Batch Jobs effectively.
toc_max_heading_level: 4
tags:
- Temporal CLI
Expand Down Expand Up @@ -91,7 +91,7 @@ The following options can be used with any command.
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |
| `--profile` | No | **string** Profile to use for config file. | |
| `--profile` | No | **string** Configuration profile to use. Overrides the TEMPORAL_PROFILE environment variable and defaults to "default". | |
| `--time-format` | No | **string-enum** Time format. Accepted values: relative, iso, raw. | `relative` |
| `--tls` | No | **bool** Enable base TLS encryption. Auto-enabled when api-key or TLS options are set. | |
| `--tls-ca-data` | No | **string** Inline server CA certificate data. | |
Expand Down
3 changes: 2 additions & 1 deletion docs/cli/command-reference/cloud/connectivity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Use the following options to change the behavior of this command. You can also u
| `--api-key` | No | **string** API key for authenticating with Temporal Cloud. Can be used instead of interactive login for automation and CI/CD pipelines. |
| `--async` | No | **bool** Return immediately after initiating the operation instead of waiting for completion. Use the returned operation ID to check status later. |
| `--async-operation-id` | No | **string** Custom identifier for tracking this async operation. If not provided, a unique ID is generated automatically. |
| `--azure-pe-resource-id` | No | **string** The ARM resource ID of the Azure Private Endpoint (only for Azure private connectivity). Example: `/subscriptions/{sub}/resourceGroups/{rg}/providers/Microsoft.Network/privateEndpoints/{name}`. |
| `--azure-pe-resource-id` | No | **string** The ARM resource ID of the Azure Private Endpoint (only for Azure private connectivity). Example: /subscriptions/\{sub\}/resourceGroups/\{rg\}/providers/Microsoft.Network/privateEndpoints/\{name\}. |
| `--connection-id` | No | **string** The connection ID for private connectivity (AWS VPC endpoint ID or GCP PSC connection ID). |
| `--gcp-project-id` | No | **string** The GCP project ID (only for GCP private connectivity). |
| `--idempotent` | No | **bool** Succeed silently if the resource already exists or matches the specification. Without this flag, the command errors when no changes are needed. |
Expand Down Expand Up @@ -157,3 +157,4 @@ The following options can be used with any command.
| `--config-dir` | No | **string** Directory path where CLI configuration files are stored, including authentication tokens and settings. | |
| `--disable-pop-up` | No | **bool** Prevent the CLI from opening a browser window during authentication. Useful for headless environments or when using alternative auth methods. | |
| `--server` | No | **string** Override the Temporal Cloud API server address. Used for connecting to non-production environments. | `saas-api.tmprl.cloud:443` |

7 changes: 5 additions & 2 deletions docs/cli/command-reference/config.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Remove a property within a profile.

```
temporal config delete \
--profile YourProfile \
--prop tls.client_cert_path
```

Expand All @@ -34,7 +35,7 @@ Remove a full profile entirely. The `--profile` must be set explicitly.

```
temporal config delete-profile \
--profile my-profile
--profile YourProfile
```

Use [global flags](#global-flags) to customize the connection to the Temporal Service for this command.
Expand All @@ -45,6 +46,7 @@ Display specific properties or the entire profile.

```
temporal config get \
--profile YourProfile \
--prop address
```

Expand Down Expand Up @@ -76,6 +78,7 @@ Assign a value to a property and store it in the config file:

```
temporal config set \
--profile YourProfile \
--prop address \
--value us-west-2.aws.api.temporal.io:7233
```
Expand Down Expand Up @@ -114,7 +117,7 @@ The following options can be used with any command.
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |
| `--profile` | No | **string** Profile to use for config file. | |
| `--profile` | No | **string** Configuration profile to use. Overrides the TEMPORAL_PROFILE environment variable and defaults to "default". | |
| `--time-format` | No | **string-enum** Time format. Accepted values: relative, iso, raw. | `relative` |
| `--tls` | No | **bool** Enable base TLS encryption. Auto-enabled when api-key or TLS options are set. | |
| `--tls-ca-data` | No | **string** Inline server CA certificate data. | |
Expand Down
2 changes: 1 addition & 1 deletion docs/cli/command-reference/env.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ The following options can be used with any command.
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |
| `--profile` | No | **string** Profile to use for config file. | |
| `--profile` | No | **string** Configuration profile to use. Overrides the TEMPORAL_PROFILE environment variable and defaults to "default". | |
| `--time-format` | No | **string-enum** Time format. Accepted values: relative, iso, raw. | `relative` |
| `--tls` | No | **bool** Enable base TLS encryption. Auto-enabled when api-key or TLS options are set. | |
| `--tls-ca-data` | No | **string** Inline server CA certificate data. | |
Expand Down
1 change: 1 addition & 0 deletions docs/cli/command-reference/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This section includes the complete command reference for the `temporal` CLI, inc
- [cloud](/cli/command-reference/cloud)
- [config](/cli/command-reference/config)
- [env](/cli/command-reference/env)
- [nexus](/cli/command-reference/nexus)
- [operator](/cli/command-reference/operator)
- [schedule](/cli/command-reference/schedule)
- [server](/cli/command-reference/server)
Expand Down
247 changes: 247 additions & 0 deletions docs/cli/command-reference/nexus.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
---
id: nexus
title: Temporal CLI nexus command reference
sidebar_label: nexus
description: Learn how to use Temporal Nexus commands for starting, listing, and managing Nexus Operation Executions.
toc_max_heading_level: 4
tags:
- Nexus
- Temporal CLI
---

{/* NOTE: This is an auto-generated file. Any edit to this file will be overwritten.
This file is generated from the CLI command definitions via cmd/gen-docs. */}

This page provides a reference for the `temporal` CLI `nexus` 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.

## operation

These commands manage Nexus Operation Executions.

Nexus Operation commands follow this syntax:

```
temporal nexus operation [command] [options]
```

### cancel

Request cancellation of a Nexus Operation.

```
temporal nexus operation cancel \
--operation-id YourOperationId
```

The Operation handler determines how to handle the
cancellation request.

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--operation-id` | Yes | **string** Nexus Operation ID. |
| `--reason` | No | **string** Reason for cancellation. |
| `--run-id`, `-r` | No | **string** Run ID of the Nexus Operation. |

### count

Return a count of Nexus Operations. Use `--query`
to filter the operations to be counted.

```
temporal nexus operation count \
--query 'Endpoint="YourEndpoint"'
```

Visit https://docs.temporal.io/visibility to read more about
Search Attributes and queries.

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--query`, `-q` | No | **string** Query to filter Nexus Operation Executions to count. |

### describe

Display detailed information about a specific Nexus
Operation Execution.

```
temporal nexus operation describe \
--operation-id YourOperationId
```

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--operation-id` | Yes | **string** Nexus Operation ID. |
| `--raw` | No | **bool** Print properties without changing their format. |
| `--run-id`, `-r` | No | **string** Run ID of the Nexus Operation. |

### execute

Start a new Nexus Operation Execution and block until
it completes. The result is output to stdout.

```
temporal nexus operation execute \
--endpoint YourEndpoint \
--service YourService \
--operation YourOperation \
--operation-id YourOperationId \
--input '{"some-key": "some-value"}'
```

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--endpoint` | Yes | **string** Nexus Endpoint name. |
| `--id-conflict-policy` | No | **string-enum** Policy for handling an Operation ID conflict with a running operation. Accepted values: Fail, UseExisting, TerminateExisting. |
| `--id-reuse-policy` | No | **string-enum** Policy for re-using an Operation ID from a previously closed operation. Accepted values: AllowDuplicate, RejectDuplicate. |
| `--input`, `-i` | No | **string[]** Input value. Use JSON content or set --input-meta to override. Can't be combined with --input-file. Can be passed multiple times to pass multiple arguments. |
| `--input-base64` | No | **bool** Assume inputs are base64-encoded and attempt to decode them. |
| `--input-file` | No | **string[]** A path or paths for input file(s). Use JSON content or set --input-meta to override. Can't be combined with --input. Can be passed multiple times to pass multiple arguments. |
| `--input-meta` | No | **string[]** Input payload metadata as a `KEY=VALUE` pair. When the KEY is "encoding", this overrides the default ("json/plain"). Can be passed multiple times. Repeated metadata keys are applied to the corresponding inputs in the provided order. |
| `--operation` | Yes | **string** Nexus Operation name. |
| `--operation-id` | Yes | **string** Nexus Operation ID. |
| `--schedule-to-close-timeout` | No | **duration** Total time the operation is allowed to run. |
| `--schedule-to-start-timeout` | No | **duration** Maximum time to wait for an operation to be started (or completed synchronously) by a handler. |
| `--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. |
| `--service` | Yes | **string** Nexus Service name. |
| `--start-to-close-timeout` | No | **duration** Maximum time to wait for an asynchronous operation to complete after it has been started. |
| `--static-summary` | No | **string** Static summary for the Nexus Operation for human consumption in UIs. Uses Temporal Markdown formatting, should be a single line. _(Experimental)_ |

### list

List Nexus Operations. Use `--query` to filter results.

```
temporal nexus operation list \
--query 'Endpoint="YourEndpoint"'
```

Visit https://docs.temporal.io/visibility to read more about
Search Attributes and queries.

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--limit` | No | **int** Maximum number of Nexus Operation Executions to display. |
| `--page-size` | No | **int** Maximum number of Nexus Operation Executions to fetch at a time from the server. |
| `--query`, `-q` | No | **string** Query to filter the Nexus Operation Executions to list. |

### result

Wait for a Nexus Operation to complete and output
the result.

```
temporal nexus operation result \
--operation-id YourOperationId
```

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--operation-id` | Yes | **string** Nexus Operation ID. |
| `--run-id`, `-r` | No | **string** Run ID of the Nexus Operation. |

### start

Start a new Nexus Operation. Outputs the
Operation ID and Run ID.

```
temporal nexus operation start \
--endpoint YourEndpoint \
--service YourService \
--operation YourOperation \
--operation-id YourOperationId \
--input '{"some-key": "some-value"}'
```

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--endpoint` | Yes | **string** Nexus Endpoint name. |
| `--id-conflict-policy` | No | **string-enum** Policy for handling an Operation ID conflict with a running operation. Accepted values: Fail, UseExisting, TerminateExisting. |
| `--id-reuse-policy` | No | **string-enum** Policy for re-using an Operation ID from a previously closed operation. Accepted values: AllowDuplicate, RejectDuplicate. |
| `--input`, `-i` | No | **string[]** Input value. Use JSON content or set --input-meta to override. Can't be combined with --input-file. Can be passed multiple times to pass multiple arguments. |
| `--input-base64` | No | **bool** Assume inputs are base64-encoded and attempt to decode them. |
| `--input-file` | No | **string[]** A path or paths for input file(s). Use JSON content or set --input-meta to override. Can't be combined with --input. Can be passed multiple times to pass multiple arguments. |
| `--input-meta` | No | **string[]** Input payload metadata as a `KEY=VALUE` pair. When the KEY is "encoding", this overrides the default ("json/plain"). Can be passed multiple times. Repeated metadata keys are applied to the corresponding inputs in the provided order. |
| `--operation` | Yes | **string** Nexus Operation name. |
| `--operation-id` | Yes | **string** Nexus Operation ID. |
| `--schedule-to-close-timeout` | No | **duration** Total time the operation is allowed to run. |
| `--schedule-to-start-timeout` | No | **duration** Maximum time to wait for an operation to be started (or completed synchronously) by a handler. |
| `--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. |
| `--service` | Yes | **string** Nexus Service name. |
| `--start-to-close-timeout` | No | **duration** Maximum time to wait for an asynchronous operation to complete after it has been started. |
| `--static-summary` | No | **string** Static summary for the Nexus Operation for human consumption in UIs. Uses Temporal Markdown formatting, should be a single line. _(Experimental)_ |

### terminate

Terminate a Nexus Operation.

```
temporal nexus operation terminate \
--operation-id YourOperationId \
--reason YourReason
```

Operation handlers cannot see or respond to terminations.

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.

| Flag | Required | Description |
|------|----------|-------------|
| `--operation-id` | Yes | **string** Nexus Operation ID. |
| `--reason` | No | **string** Reason for termination. Defaults to a message with the current user's name. |
| `--run-id`, `-r` | No | **string** Run ID of the Nexus Operation. |

## Global Flags

The following options can be used with any command.

| Flag | Required | Description | Default |
|------|----------|-------------|--------|
| `--address` | No | **string** Temporal Service gRPC endpoint. | `localhost:7233` |
| `--api-key` | No | **string** API key for request. | |
| `--client-authority` | No | **string** Temporal gRPC client :authority pseudoheader. | |
| `--client-connect-timeout` | No | **duration** Client connection timeout. | |
| `--codec-auth` | No | **string** Authorization header for Codec Server requests. | |
| `--codec-endpoint` | No | **string** Remote Codec Server endpoint. | |
| `--codec-header` | No | **string[]** HTTP headers for codec server (KEY=VALUE, repeatable). | |
| `--color` | No | **string-enum** Output coloring. Accepted values: always, never, auto. | `auto` |
| `--command-timeout` | No | **duration** Command execution timeout. | |
| `--config-file` | No | **string** TOML config file path. | |
| `--disable-config-env` | No | **bool** Disable loading config from environment variables. | |
| `--disable-config-file` | No | **bool** Disable loading config from file. | |
| `--env` | No | **string** Active environment name (`ENV`). | `default` |
| `--env-file` | No | **string** Path to environment settings file. | |
| `--grpc-meta` | No | **string[]** HTTP headers for requests (KEY=VALUE, repeatable). | |
| `--identity` | No | **string** Identity of the client submitting requests. | |
| `--log-format` | No | **string-enum** Log format. Accepted values: text, json. | `text` |
| `--log-level` | No | **string-enum** Log level. Default is "never" for most commands and "warn" for "server start-dev". Accepted values: debug, info, warn, error, never. | `never` |
| `--namespace`, `-n` | No | **string** Temporal Service Namespace. | `default` |
| `--no-json-shorthand-payloads` | No | **bool** Raw payload output, even if the JSON option was used. | |
| `--output`, `-o` | No | **string-enum** Non-logging data output format. Accepted values: text, json, jsonl, none. | `text` |
| `--profile` | No | **string** Configuration profile to use. Overrides the TEMPORAL_PROFILE environment variable and defaults to "default". | |
| `--time-format` | No | **string-enum** Time format. Accepted values: relative, iso, raw. | `relative` |
| `--tls` | No | **bool** Enable base TLS encryption. Auto-enabled when api-key or TLS options are set. | |
| `--tls-ca-data` | No | **string** Inline server CA certificate data. | |
| `--tls-ca-path` | No | **string** Path to server CA certificate. | |
| `--tls-cert-data` | No | **string** Inline x509 certificate data. | |
| `--tls-cert-path` | No | **string** Path to x509 certificate. | |
| `--tls-disable-host-verification` | No | **bool** Disable TLS host-name verification. | |
| `--tls-key-data` | No | **string** Inline x509 private key data. | |
| `--tls-key-path` | No | **string** Path to x509 private key. | |
| `--tls-server-name` | No | **string** Override target TLS server name. | |

Loading