Skip to main content

tctl version-next search-attribute command reference

The tctl search-attribute command enables Search AttributeLink preview iconWhat is a Search Attribute?

A Search Attribute is an indexed name used in List Filters to filter a list of Workflow Executions that have the Search Attribute in their metadata.

Learn more operations.

create

The tctl search-attribute create command adds one or more custom Search Attributes.

tctl search-attribute create \
--yes \
--name CustomKeywordField --type Keyword \
--name CustomStringField --type Text \
--name CustomTextField --type Text \
--name CustomIntField --type Int \
--name CustomDatetimeField --type Datetime \
--name CustomDoubleField --type Double \
--name CustomBoolField --type Bool \
--name SimulatedFailure --type Bool

list

The tctl search-attribute list command lists all Search AttributesLink preview iconWhat is a Search Attribute?

A Search Attribute is an indexed name used in List Filters to filter a list of Workflow Executions that have the Search Attribute in their metadata.

Learn more that can be used in the --query modifier of the tctl workflow listLink preview icontctl workflow list

How to list open or closed Workflow Executions using tctl.

Learn more command.

Example:

tctl search-attribute list

The command has no modifiers.

Example output:

           Name               Type
BatcherNamespace Keyword
BatcherUser Keyword
BinaryChecksums Keyword
CloseTime Datetime
CustomBoolField Bool
CustomDatetimeField Datetime
CustomDoubleField Double
CustomIntField Int
CustomKeywordField Keyword
CustomStringField Text
CustomTextField Text
ExecutionDuration Int
ExecutionStatus Keyword
ExecutionTime Datetime
HistoryLength Int
RunId Keyword
StartTime Datetime
StateTransitionCount Int
TaskQueue Keyword
TemporalChangeVersion Keyword
TemporalNamespaceDivision Keyword
TemporalSchedulePaused Bool
TemporalScheduledById Keyword
TemporalScheduledStartTime Datetime
WorkflowId Keyword
WorkflowType Keyword

remove

The tctl search-attribute remove command removes a Search Attribute.

The following modifiers control the behavior of the command. Always include required modifiers when executing this command.