Skip to main content

FlowCtl Workflows Command

The workflows command provides a complete management interface for FlowSynx workflows.
It supports creating, updating, deleting, executing, and inspecting workflows, as well as managing their triggers, executions, and approval tasks.

Root Command: workflows

Usage

flowctl workflows [command] [options]

If no subcommand is specified, the command lists all existing workflows in the system.

Options

ShortLongRequiredDefaultDescription
-a--addressNononeHTTP(S) endpoint of the FlowSynx system (e.g., http://127.0.0.1:8080). Overrides default profile settings.
-o--outputNoJsonOutput format for list/details operations. Supported formats: Json, Table, Xml, Yaml.
-?, -h--helpNoDisplay usage information for the plugins command and its subcommands.

Available Subcommands

CommandDescription
addAdd a new workflow.
deleteDelete an existing workflow.
detailsRetrieve detailed information about a workflow.
updateUpdate an existing workflow definition.
executionsManage workflow executions (run, cancel, approve, etc).
triggersManage workflow triggers (add, update, delete, details).

Example: List All available workflows

flowctl workflows --output Table

Manage Workflows

Add

Create a new workflow definition.

flowctl workflows add [options]

Options

ShortLongRequiredDescription
-d--definitionConditionalJSON string of the workflow definition.
-f--definition-fileConditionalPath to a JSON file containing the definition.
-a--addressNoHTTP endpoint to connect to FlowSynx.
-?, -h--helpNoShow help.

Either --definition or --definition-file is required.

Delete

Remove an existing workflow.

Usage

flowctl workflows delete --workflow-id <workflow-id>

Options

ShortLongRequiredDescription
-t--typeYesType or identifier of the plugin to uninstall.
-v--versionYesVersion of the plugin to uninstall. Must match an installed version.
-a--addressNoTarget FlowSynx HTTP(S) endpoint. Overrides CLI defaults.
-?, -h--helpNoShow usage and help information for the uninstall command.

Required Options:

  • -w, --workflow-id: The unique workflow identifier.

Details

Get details about a specific workflow.

Usage

flowctl workflows details --workflow-id <workflow-id>

Update

Update an existing workflow definition.

Usage

flowctl workflows update --workflow-id <workflow-id> [--definition <json> | --definition-file <file>]

Either --definition or --definition-file is required.

Manage Executions

Control workflow execution lifecycle.

flowctl workflows executions [command] [options]

Commands

CommandDescription
executeStart execution of a workflow.
detailsGet details of a specific workflow execution.
logsRetrieve logs of a specific execution.
cancelCancel an in-progress workflow execution.
approvalsManage pending approvals for human-in-the-loop tasks.

Execute

Run a workflow.

flowctl workflows executions execute --workflow-id <workflow-id>

Details

View execution details.

flowctl workflows executions details --workflow-id <workflow-id> --execution-id <execution-id>

Logs

Get execution logs.

flowctl workflows executions logs --workflow-id <workflow-id> --execution-id <execution-id>

Cancel

Cancel a running execution.

flowctl workflows executions cancel --workflow-id <workflow-id> --execution-id <execution-id>

Approvals

Manage pending approvals (human tasks).

flowctl workflows executions approvals [command] [options]

Commands: approve, reject

Approve

Approve a pending task.

flowctl workflows executions approvals approve --workflow-id <workflow-id> --execution-id <execution-id> --approval-id <approval-id>

Reject

Reject a pending task.

flowctl workflows executions approvals reject --workflow-id <workflow-id> --execution-id <execution-id> --approval-id <approval-id>

Manage Triggers

Workflow triggers define automated execution rules.

flowctl workflows triggers [command] [options]

Commands

CommandDescription
addAdd a new trigger to a workflow.
detailsGet details of a specific trigger.
updateUpdate an existing workflow trigger.
deleteDelete a workflow trigger.

Add

flowctl workflows triggers add --workflow-id <workflow-id> [--data <json> | --data-file <file>]

Either --data or --data-file is required.

Details

flowctl workflows triggers details --workflow-id <workflow-id> --trigger-id <trigger-id>

Update

flowctl workflows triggers update --workflow-id <workflow-id> --trigger-id <trigger-id> [--data <json> | --data-file <file>]

Delete

flowctl workflows triggers delete --workflow-id <workflow-id> --trigger-id <trigger-id>