Loading...
Last updated on
The gensx run command executes a workflow that has been deployed to GenSX Cloud. By default it infers your project from the gensx.yaml file in the current working directory.
gensx run <workflow> [options]| Argument | Description |
|---|---|
<workflow> | Name of the workflow to run. |
| Option | Description |
|---|---|
-i, --input <input> | Input to pass to the workflow (as JSON). |
--no-wait | Do not wait for the workflow to finish (run asynchronously). |
-p, --project <name> | Project name where the workflow is deployed. |
--env <name> | Environment name where the workflow is deployed. |
-o, --output <file> | Output file to write the workflow result to. |
-y, --yes | Automatically answer yes to all prompts. |
-h, --help | Display help for the command. |
This command triggers execution of a deployed workflow on GenSX Cloud with the specified input. By default, it waits for the workflow to complete and displays the result.
When running a workflow, you can:
# Run a workflow with no input
gensx run MyWorkflow
# Run a workflow with JSON input
gensx run MyWorkflow --input '{"text": "Hello, world!"}'
# Run a workflow in a specific project and environment
gensx run MyWorkflow --project my-project --env prod
# Run a workflow asynchronously (don't wait for completion)
gensx run MyWorkflow --no-wait
# Run a workflow and save output to a file
gensx run MyWorkflow --output result.jsongensx login)gensx deploy--input, the input must be valid JSON--no-wait, the command returns immediately with a workflow ID that can be used to check status later