Overview
flytectl create registers new resources with FlyteAdmin.
Subcommands
| Subcommand | Aliases | Description |
|---|---|---|
create project | projects | Register a new project |
create execution | executions | Launch a workflow or task execution |
create project
Register a new Flyte project.project.yaml):
The project
name must not contain whitespace characters.| Flag | Description |
|---|---|
--name | Display name of the project |
--id | Unique identifier for the project |
--description | Human-readable description |
--labels | Key=value labels (repeatable) |
--file | Path to a YAML project definition file |
--dryRun | Print the request without executing it |
create execution
Launch a workflow or task execution. The recommended approach is to first generate an execution spec file usingflytectl get task or flytectl get launchplan, then pass that file to create execution.
Edit the inputs (optional)
Modify the spec file to supply real input values:You can also add environment variables:Or target a specific execution cluster:
Relaunch an execution
Recover an execution
Recreate an execution from the last known failure point:Named executions
Assign a custom name to an execution (must be unique within project+domain):Generic / struct input types
For tasks that accept struct or dataclass inputs, generate the spec first to see the placeholder structure, then populate it:Assign to a cluster pool
| Flag | Description |
|---|---|
--execFile | Path to the execution spec YAML file |
--relaunch | Execution ID to relaunch |
--recover | Execution ID to recover from last failure |
--targetProject | Project in which to create the execution |
--targetDomain | Domain in which to create the execution |
--targetExecutionCluster | Cluster to run the execution on |
--iamRoleARN | IAM role ARN for auth |
--kubeServiceAcct | Kubernetes service account for auth |
--version | Version of the workflow or task |
--clusterPool | Cluster pool to assign the execution to |
--overwriteCache | Skip cached results and recompute all outputs |
--dryRun | Print the request without executing it |