Fetch all registered projects or a specific project by ID.
# List all projectsflytectl get project# Get a project by IDflytectl get project flytesnacks# Filter by nameflytectl get project --filter.fieldSelector="project.name=flytesnacks"# Paginate resultsflytectl get project --filter.limit=10 --filter.page=2# Sort resultsflytectl get project --filter.sortBy=created_at --filter.limit=1 --filter.asc# YAML outputflytectl get project -o yaml# JSON outputflytectl get project -o json
Fetch workflow definitions within a project and domain.
# List all workflows (returns named entity list)flytectl get workflow -p flytesnacks -d development# List all versions of a named workflowflytectl get workflow -p flytesnacks -d development core.basic.lp.go_greet# Fetch the latest versionflytectl get workflow -p flytesnacks -d development core.basic.lp.go_greet --latest# Fetch a specific versionflytectl get workflow -p flytesnacks -d development core.basic.lp.go_greet --version v2# Filter workflowsflytectl get workflow -p flytesnacks -d development \ --filter.fieldSelector="workflow.name=k8s_spark.dataframe_passing.my_smart_schema"# Paginateflytectl get workflow -p flytesnacks -d development --filter.limit=10 --filter.page=2# Visualize the workflow graph as DOTflytectl get workflow -p flytesnacks -d development \ core.flyte_basics.basic_workflow.my_wf --latest -o dot# Render DOT in browserflytectl get workflow -p flytesnacks -d development \ core.flyte_basics.basic_workflow.my_wf --latest -o doturl
Flags:
Flag
Description
--latest
Fetch the latest version
--version
Fetch a specific version (e.g. v2)
--filter.fieldSelector
Filter expression (e.g. workflow.name=foo)
--filter.sortBy
Sort field (e.g. created_at)
--filter.limit
Maximum number of results per page
--filter.page
Page number to retrieve
--filter.asc
Sort in ascending order
-o dot and -o doturl are only supported for workflows.
Fetch task definitions within a project and domain.
# List all tasksflytectl get task -p flytesnacks -d development# List all versions of a named taskflytectl get task -p flytesnacks -d development core.basic.lp.greet# Fetch the latest versionflytectl get task -p flytesnacks -d development core.basic.lp.greet --latest# Fetch a specific versionflytectl get task -p flytesnacks -d development core.basic.lp.greet --version v2# Filter tasksflytectl get task -p flytesnacks -d development \ --filter.fieldSelector="task.name=k8s_spark.pyspark_pi.print_every_time,task.version=v1"# Generate an execution spec file for launching the taskflytectl get task -d development -p flytesnacks \ core.control_flow.merge_sort.merge --execFile execution_spec.yaml --version v2
Fetch launch plan definitions within a project and domain.
# List all launch plansflytectl get launchplan -p flytesnacks -d development# List all versions of a named launch planflytectl get launchplan -p flytesnacks -d development core.basic.lp.go_greet# Fetch the latest versionflytectl get launchplan -p flytesnacks -d development core.basic.lp.go_greet --latest# Fetch a specific versionflytectl get launchplan -p flytesnacks -d development core.basic.lp.go_greet --version v2# Fetch all launch plans for a workflowflytectl get launchplan -p flytesnacks -d development \ --workflow core.flyte_basics.lp.go_greet# List only active launch plansflytectl get launchplan -p flytesnacks -d development -o yaml \ --filter.fieldSelector "state=1"# List only archived launch plansflytectl get launchplan -p flytesnacks -d development -o yaml \ --filter.fieldSelector "state=0"# Generate an execution spec fileflytectl get launchplan -d development -p flytesnacks \ core.control_flow.merge_sort.merge_sort --execFile execution_spec.yaml
Fetch workflow executions within a project and domain.
# List all executionsflytectl get execution -p flytesnacks -d development# Get a specific execution by nameflytectl get execution -p flytesnacks -d development oeh94k9r2r# Filter by phaseflytectl get execution -p flytesnacks -d development \ --filter.fieldSelector="execution.phase in (FAILED;SUCCEEDED),execution.duration<200"# Paginateflytectl get execution -p flytesnacks -d development \ --filter.limit=10 --filter.page=2# Sort resultsflytectl get execution -p flytesnacks -d development \ --filter.sortBy=created_at --filter.limit=1 --filter.asc# JSON outputflytectl get execution -p flytesnacks -d development -o json# YAML outputflytectl get execution -p flytesnacks -d development -o yaml# Show node and task execution details (tree view)flytectl get execution -p flytesnacks -d development oeh94k9r2r --details# Show details in YAML (node-level only)flytectl get execution -p flytesnacks -d development oeh94k9r2r --details -o yaml# Inspect a specific nodeflytectl get execution -p flytesnacks -d development oeh94k9r2r --nodeID n0# Inspect a node in YAML (includes inputs and outputs)flytectl get execution -p flytesnacks -d development oeh94k9r2r --nodeID n0 -o yaml
Flags:
Flag
Description
--details
Show node and task execution tree
--nodeID
Fetch task executions for a specific node ID
--filter.fieldSelector
Filter expression
--filter.sortBy
Sort field
--filter.limit
Maximum number of results per page
--filter.page
Page number
--filter.asc
Sort ascending
Output columns:Name, Launch Plan Name, Version, Type, Phase, Scheduled Time, Started, Elapsed Time, Abort data, Error data
--details does not support TABLE format. If -o TABLE is used with --details, flytectl falls back to tree view automatically.
These subcommands fetch resource overrides that can be applied at project, project+domain, or project+domain+workflow scope.
get task-resource-attribute
flytectl get task-resource-attribute -p flytesnacks -d developmentflytectl get task-resource-attribute -p flytesnacks -d development --attrFile tra.yaml
get cluster-resource-attribute
flytectl get cluster-resource-attribute -p flytesnacks -d developmentflytectl get cluster-resource-attribute -p flytesnacks -d development --attrFile cra.yaml
get execution-cluster-label
flytectl get execution-cluster-label -p flytesnacks -d developmentflytectl get execution-cluster-label -p flytesnacks -d development --attrFile ecl.yaml
get execution-queue-attribute
flytectl get execution-queue-attribute -p flytesnacks -d development
get plugin-override
flytectl get plugin-override -p flytesnacks -d development
get workflow-execution-config
flytectl get workflow-execution-config -p flytesnacks -d development