AIFlow¶
Command Line Interface¶
AIFlow has a very rich command-line interface that supports many types of operations on a Workflow, starting services and testing.
Content
Positional Arguments
Sub-commands:
usage: aiflow [-h] COMMAND ...
Positional Arguments¶
GROUP_OR_COMMAND
Possible choices: config, db, namespace, server, task-execution, workflow, workflow-execution, workflow-schedule, workflow-trigger, version.
Sub-commands¶
config¶
Manages configuration.
aiflow config [-h] COMMAND ...
db¶
Database operations
aiflow db [-h] COMMAND ...
namespace¶
Namespace related operations.
aiflow namespace [-h] COMMAND ...
workflow¶
Workflow related operations.
aiflow workflow [-h] COMMAND ...
Sub-commands¶
delete¶
Deletes all DB records related to the specified workflow.
aiflow workflow delete [-h] [-n NAMESPACE] [-y] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-y, –yes
Do not prompt to confirm reset. Use with care!
Default: False.
list¶
Lists all the workflows.
aiflow workflow list [-h] [-n NAMESPACE] [-o table, json, yaml]
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
disable¶
Disables the workflow so that no more executions would be scheduled.
aiflow workflow disable [-h] [-n NAMESPACE] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
enable¶
Enables the workflow which is disabled before.
aiflow workflow enable [-h] [-n NAMESPACE] workflow_name
show¶
Shows the details of the workflow by workflow name.
aiflow workflow show [-h] [-n NAMESPACE] [-o table, json, yaml] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
workflow-execution¶
Workflow execution related operations.
aiflow workflow-execution [-h] COMMAND ...
Sub-commands¶
delete¶
Deletes the workflow execution by execution id.
aiflow workflow-execution delete [-h] [-y] workflow_execution_id
list¶
Lists all workflow executions of the workflow.
aiflow workflow-execution list [-h] [-n NAMESPACE] [-o table, json, yaml] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
show¶
Shows the details of the workflow execution by execution id.
aiflow workflow-execution show [-h] [-o table, json, yaml] workflow_execution_id
Named Arguments¶
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
start¶
Starts a new execution of the workflow.
aiflow workflow-execution start [-h] [-n NAMESPACE] workflow_name
stop¶
Stops the workflow execution by execution id.
aiflow workflow-execution stop [-h] workflow_execution_id
task-execution¶
Task execution related operations.
aiflow task-execution [-h] COMMAND ...
Sub-commands¶
list¶
Lists all task executions of the workflow execution.
aiflow task-execution list [-h] [-o table, json, yaml] workflow_execution_id
Named Arguments¶
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
show¶
Shows the details of the task execution by execution id.
aiflow task-execution show [-h] [-o table, json, yaml] task_execution_id
Named Arguments¶
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
workflow-schedule¶
Manages the periodic schedules of the workflow.
aiflow workflow-schedule [-h] COMMAND ...
Sub-commands¶
add¶
Creates a new schedule for workflow.
aiflow workflow-schedule add [-h] [-n NAMESPACE] workflow_name expression
Positional Arguments¶
workflow_name
The name of workflow.
expression
The expression of the workflow schedule.
delete¶
Deletes the workflow schedule by id.
aiflow workflow-schedule delete [-h] [-y] workflow_schedule_id
delete-all¶
Deletes all schedules of the workflow.
aiflow workflow-schedule delete-all [-h] [-n NAMESPACE] [-y] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-y, –yes
Do not prompt to confirm reset. Use with care! Default: False.
list¶
Lists all schedules of the workflow.
aiflow workflow-schedule list [-h] [-n NAMESPACE] [-o table, json, yaml] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
pause¶
Pauses the schedule and the workflow would not periodically execute anymore.
aiflow workflow-schedule pause [-h] workflow_schedule_id
resume¶
Resumes the schedule which is paused before.
aiflow workflow-schedule resume [-h] workflow_schedule_id
workflow-trigger¶
Manages the event triggers of the workflow.
aiflow workflow-trigger [-h] COMMAND ...
Sub-commands¶
delete¶
Deletes the workflow event trigger by id.
aiflow workflow-trigger delete [-h] [-y] workflow_trigger_id
delete-all¶
Deletes all event triggers of the workflow.
aiflow workflow-trigger delete-all [-h] [-n NAMESPACE] [-y] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-y, –yes
Do not prompt to confirm reset. Use with care! Default: False.
list¶
Lists all event triggers of the workflow.
aiflow workflow-trigger list [-h] [-n NAMESPACE] [-o table, json, yaml] workflow_name
Named Arguments¶
-n, –namespace
Namespace that contains the workflow.
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.
show¶
Shows the details of the workflow event trigger by id.
aiflow workflow-trigger show [-h] [-o table, json, yaml] workflow_trigger_id
Named Arguments¶
-o, –output
Possible choices: table, json, yaml, plain.
Output format. Allowed values: json, yaml, plain, table (default: table).
Default: “table”.