tctl version-next search-attribute command reference
The tctl search-attribute
command enables Search AttributeWhat 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.
- tctl search-attribute createtctl search-attribute create
How to create Search Attributes using tctl.
Learn more - tctl search-attribute listtctl search-attribute list
How to list Search Attributes using tctl.
Learn more - tctl search-attribute removetctl search-attribute remove
How to remove Search Attributes using tctl.
Learn more
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 AttributesWhat 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 list
tctl 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.