The TCTL Temporal Helper is a utility designed to facilitate the submission of data to Temporal using the Temporal Command-Line Interface (TCTL). It streamlines the process of sending data to Temporal, making it easier to interact with Temporal workflows and activities.
Before using this tool, make sure you have the following environment variables set up:
-
PORT
: The port number to communicate with Temporal. (e.g.,3778
) -
TEMPORAL_CLIENT
: Temporal client configuration, including connection details. -
MAIN_PROCESS
: Specify the main process or entry point for your Temporal workflows. -
INITIAL_ARGUMENTS
: Initial arguments to be passed when invoking Temporal, typically used for executing Temporal admin tools.
Docker integration is still under development.
To install the TCTL Temporal Helper, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/gustavocarneiroa/temporal_tctl.git
-
Navigate to the project directory:
cd temporal_tctl
-
Install the necessary dependencies:
npm install
Once you have installed the TCTL Temporal Helper, you can use it as follows:
-
Set the required environment variables (
PORT
,TEMPORAL_CLIENT
,MAIN_PROCESS
,INITIAL_ARGUMENTS
) in your environment or in a.env
file. -
Run the TCTL Temporal Helper :
node .
-
Access your localhost with your setted
PORT
(e.g, https://localhost:3333) -
Submit data from UI.
Here's an example of how to use the TCTL Temporal Helper to interact with Temporal:
# Set the environment variables
export PORT=3778
export TEMPORAL_CLIENT="http://my_temporal_client:9999"
export MAIN_PROCESS=docker
export INITIAL_ARGUMENTS=exec,temporal-admin-tools
# Run TCTL Temporal Helper
node .
In this example, we first set the required environment variables and then use TCTL Temporal Helper to submit a workflow named my_workflow
.
We welcome contributions to the TCTL Temporal Helper project. Feel free to fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Special thanks to the Temporal community for their support and contributions to this project.