Skip to content

Instantly share code, notes, and snippets.

@mortymacs
Created November 4, 2023 19:52
Show Gist options
  • Save mortymacs/cef6c07ec8354af329578a0351e39687 to your computer and use it in GitHub Desktop.
Save mortymacs/cef6c07ec8354af329578a0351e39687 to your computer and use it in GitHub Desktop.
Temporal CLI sample commands
# Create a namespace
$ tctl --ns <NAMESPACE> n re
# Get namespace description.
$ tctl --ns <NAMESPACE> n desc
# Send a request to the workflow.
$ tctl workflow run --taskqueue <TASK-QUEUE> --workflow_type <WORKFLOW-NAME> --input '{"name": "something", "foo": "bar"}'
# Get list of workflows.
$ tctl workflow list --workflow_type <WORKFLOW-NAME> -m
$ tctl workflow list --workflow_type <WORKFLOW-NAME>
$ tctl workflow list --workflow_type <WORKFLOW-NAME> --pf
# Show a workflow info.
$ tctl workflow show --workflow_id <ID>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment