Skip to main content

tctl workflow scan

The tctl workflow scan command lists Workflow Executions. It is faster than the tctl workflow listall command, but the results are not sorted.

By default, this command lists a maximum of 2000 Workflow Executions. To set the size of a page, use the --pagesize option.

See also tctl workflow list, tctl workflow listall, and tctl workflow listarchived.

tctl workflow scan [<modifiers>]

The following modifiers control the behavior of the command.

--print_raw_time

Print the raw timestamp.

Alias: --prt

Example

tctl workflow scan --print_raw_time

--print_datetime

Print the timestamp.

Alias: --pdt

Example

tctl workflow scan --print_datetime

--print_memo

Print a memo.

Alias: --pme

Example

tctl workflow scan --print_memo

--print_search_attr

Print the Search Attributes.

Alias: --psa

Example

tctl workflow scan --print_search_attr

--print_full

Print the full message without table formatting.

Alias: --pf

Example

tctl workflow scan --print_full

--print_json

Print the raw JSON objects.

Alias: --pjson

Example

tctl workflow scan --print_json

--pagesize

Specify the maximum number of Workflow Execution to list on a page. (By default, the tctl workflow scan command lists 2000 Workflow Executions per page.)

Alias: --ps

Example

tctl workflow scan --pagesize <value>

--query

Specify an SQL-like query of Search Attributes.

Alias: -q

Example

tctl workflow scan --query <value>