ArgoWorkflow
Commands
apply
Apply Workflow
Create a workflow if it does not exist. Raises an error if it already exists since Argo Workflows are immutable once created. If metadata.generateName is set, a new workflow is always created.
Basic CLI Use
Contents of theworkflow.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
workflow |
dict
|
The created workflow object. |
Raises:
| Type | Description |
|---|---|
DuploError
|
If the workflow already exists (immutable). |
Parameters:
--file, -f, --cli-input
create
Create Workflow
Submit a new Argo Workflow from a specification.
Basic CLI Use
Contents of theworkflow.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
workflow |
dict
|
The created workflow object. |
Parameters:
--file, -f, --cli-input
delete
find
list
logs
Get Workflow Logs
Retrieve log entries for all pods in a workflow. By default, returns existing logs immediately (logOptions.follow=false). Pass --stream to follow the log stream until the workflow completes.
Returns:
| Name | Type | Description |
|---|---|---|
logs |
list
|
List of log entry objects from the workflow pods. |
Parameters:
name
positional
--stream, --stream
status
Get Workflow Status
Retrieve the status of a workflow including phase, progress, and timing.
Returns:
| Name | Type | Description |
|---|---|---|
status |
dict
|
The workflow status object. |
Parameters:
name
positional