Flyte CLI
This is the command line interface for Flyte.
| Object | Action |
|---|---|
action |
abort,
get |
run |
abort,
get |
api-key |
create⁺,
delete⁺,
get⁺ |
assignment |
create⁺,
delete⁺,
get⁺ |
config |
create,
get |
policy |
create⁺,
delete⁺,
get⁺,
update⁺ |
project |
create,
get,
update |
role |
create⁺,
delete⁺,
get⁺,
update⁺ |
secret |
create,
delete,
get |
trigger |
create,
delete,
get,
update |
user |
create⁺,
delete⁺,
get⁺ |
app |
delete,
get,
update |
docs |
gen |
io |
get |
logs |
get |
member |
get⁺ |
task |
get |
hf-model |
prefetch |
deployed-task |
run |
tui |
start |
| Action | On |
|---|---|
abort |
action,
run |
build |
- |
create |
api-key⁺,
assignment⁺,
config,
policy⁺,
project,
role⁺,
secret,
trigger,
user⁺ |
delete |
api-key⁺,
app,
assignment⁺,
policy⁺,
role⁺,
secret,
trigger,
user⁺ |
deploy |
- |
gen |
docs |
get |
action,
api-key⁺,
app,
assignment⁺,
config,
io,
logs,
member⁺,
policy⁺,
project,
role⁺,
run,
secret,
task,
trigger,
user⁺ |
prefetch |
hf-model |
run |
deployed-task |
serve |
- |
start |
tui |
update |
app,
policy⁺,
project,
role⁺,
trigger |
whoami |
- |
Union-specific functionality
Commands marked with ⁺ are provided by the flyteplugins-union plugin,
which adds Union-specific functionality to the Flyte CLI
(user management, RBAC, API keys).
Install it with pip install flyteplugins-union.
See the flyteplugins.union API reference for the programmatic interface.
flyte
flyte [OPTIONS] COMMAND [ARGS]...
The Flyte CLI is the command line interface for working with the Flyte SDK and backend.
It follows a simple verb/noun structure, where the top-level commands are verbs that describe the action to be taken, and the subcommands are nouns that describe the object of the action.
The root command can be used to configure the CLI for persistent settings, such as the endpoint, organization, and verbosity level.
Set endpoint and organization:
$ flyte --endpoint <endpoint> --org <org> get project <project_name>Increase verbosity level (This is useful for debugging, this will show more logs and exception traces):
$ flyte -vvv get logs <run-name>Override the default config file:
$ flyte --config /path/to/config.yaml run ...- Documentation
- GitHub: Please leave a star if you like Flyte!
- Slack: Join the community and ask questions.
- Issues
| Option | Type | Default | Description |
|---|---|---|---|
--version |
boolean |
False |
Show the version and exit. |
--endpoint |
text |
Sentinel.UNSET |
The endpoint to connect to. This will override any configuration file and simply use pkce to connect. |
--insecure |
boolean |
Use an insecure connection to the endpoint. If not specified, the CLI will use TLS. | |
--auth-type |
choice |
Authentication type to use for the Flyte backend. Defaults to ‘pkce’. | |
-v--verbose |
integer |
0 |
Show verbose messages and exception traces. Repeating multiple times increases the verbosity (e.g., -vvv). |
--org |
text |
Sentinel.UNSET |
The organization to which the command applies. |
-c--config |
file |
Sentinel.UNSET |
Path to the configuration file to use. If not specified, the default configuration file is used. |
--output-format-of |
choice |
table |
Output format for commands that support it. Defaults to ’table'. |
--log-format |
choice |
console |
Formatting for logs, defaults to ‘console’ which is meant to be human readable. ‘json’ is meant for machine parsing. |
--reset-root-logger |
boolean |
False |
If set, the root logger will be reset to use Flyte logging style |
--help |
boolean |
False |
Show this message and exit. |
flyte abort
flyte abort COMMAND [ARGS]...
Abort an ongoing process.
flyte abort action
flyte abort action [OPTIONS] RUN_NAME ACTION_NAME
Abort an action associated with a run.
| Option | Type | Default | Description |
|---|---|---|---|
--reason |
text |
Manually aborted from the CLI |
The reason to abort the run. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte abort run
flyte abort run [OPTIONS] RUN_NAME
Abort a run.
| Option | Type | Default | Description |
|---|---|---|---|
--reason |
text |
Manually aborted from the CLI |
The reason to abort the run. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte build
flyte build [OPTIONS] COMMAND [ARGS]...
Build the environments defined in a python file or directory. This will build the images associated with the environments.
| Option | Type | Default | Description |
|---|---|---|---|
--noop |
boolean |
Sentinel.UNSET |
Dummy parameter, placeholder for future use. Does not affect the build process. |
--help |
boolean |
False |
Show this message and exit. |
flyte create
flyte create COMMAND [ARGS]...
Create resources in a Flyte deployment.
flyte create api-key
Note: This command is provided by the
flyteplugins.unionplugin.
flyte create api-key [OPTIONS]
Create an API key for headless authentication.
This creates OAuth application credentials that can be used to authenticate with Union without interactive login. The generated API key should be set as the FLYTE_API_KEY environment variable. Oauth applications should not be confused with Union Apps, which are a different construct entirely.
Examples:
# Create an API key named "ci-pipeline"
$ flyte create api-key --name ci-pipeline
# The output will include an export command like:
# export FLYTE_API_KEY="<base64-encoded-credentials>"
| Option | Type | Default | Description |
|---|---|---|---|
--name |
text |
Sentinel.UNSET |
Name for API key |
--help |
boolean |
False |
Show this message and exit. |
flyte create assignment
Note: This command is provided by the
flyteplugins.unionplugin.
flyte create assignment [OPTIONS]
Assign a policy to an identity.
Exactly one of –user-subject, –creds-subject, or –email must be provided.
Examples:
$ flyte --org my-org create assignment --user-subject user-123 --policy admin
$ flyte --org my-org create assignment --creds-subject app-456 --policy admin
$ flyte --org my-org create assignment --email [email protected] --policy admin
| Option | Type | Default | Description |
|---|---|---|---|
--user-subject |
text |
User subject identifier | |
--creds-subject |
text |
Client credentials application subject | |
--email |
text |
User email for lookup | |
--policy |
text |
Sentinel.UNSET |
Policy name to assign |
--help |
boolean |
False |
Show this message and exit. |
flyte create config
flyte create config [OPTIONS]
Creates a configuration file for Flyte CLI.
If the --output option is not specified, it will create a file named config.yaml in the current directory.
If the file already exists, it will raise an error unless the --force option is used.
| Option | Type | Default | Description |
|---|---|---|---|
--endpoint |
text |
Sentinel.UNSET |
Endpoint of the Flyte backend. |
--insecure |
boolean |
False |
Use an insecure connection to the Flyte backend. |
--org |
text |
Sentinel.UNSET |
Organization to use. This will override the organization in the configuration file. |
-o--output |
path |
.flyte/config.yaml |
Path to the output directory where the configuration will be saved. Defaults to current directory. |
--force |
boolean |
False |
Force overwrite of the configuration file if it already exists. |
--image-builder--builder |
choice |
local |
Image builder to use for building images. Defaults to ’local’. |
--auth-type |
choice |
Authentication type to use for the Flyte backend. Defaults to ‘pkce’. | |
--local-persistence |
boolean |
False |
Enable SQLite persistence for local run metadata, allowing past runs to be browsed via ‘flyte start tui’. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte create policy
Note: This command is provided by the
flyteplugins.unionplugin.
flyte create policy [OPTIONS] NAME
Create a policy.
Requires –file or –edit to specify bindings for the policy.
Examples:
$ flyte --org my-org create policy my-policy --edit
$ flyte --org my-org create policy my-policy --file policy.yaml
| Option | Type | Default | Description |
|---|---|---|---|
--file |
path |
Create policy from a YAML file | |
--edit |
boolean |
False |
Open an editor to configure the policy before creating |
--help |
boolean |
False |
Show this message and exit. |
flyte create project
flyte create project [OPTIONS]
Create a new project.
Example usage:
flyte create project --id my_project_id --name "My Project"
flyte create project --id my_project_id --name "My Project" --description "My project" -l team=ml -l env=prod| Option | Type | Default | Description |
|---|---|---|---|
--id |
text |
Sentinel.UNSET |
Unique identifier for the project (immutable). |
--name |
text |
Sentinel.UNSET |
Display name for the project. |
--description |
text |
`` | Description for the project. |
--label-l |
text |
Sentinel.UNSET |
Labels as key=value pairs. Can be specified multiple times. |
--help |
boolean |
False |
Show this message and exit. |
flyte create role
Note: This command is provided by the
flyteplugins.unionplugin.
flyte create role [OPTIONS] NAME
Create a role.
Requires –file or –edit to specify actions for the role.
Examples:
$ flyte --org my-org create role my-role --edit
$ flyte --org my-org create role my-role --file role.yaml
| Option | Type | Default | Description |
|---|---|---|---|
--file |
path |
Create role from a YAML file | |
--edit |
boolean |
False |
Open an editor to configure the role before creating |
--help |
boolean |
False |
Show this message and exit. |
flyte create secret
flyte create secret [OPTIONS] NAME
Create a new secret. The name of the secret is required. For example:
$ flyte create secret my_secret --value my_valueIf you don’t provide a --value flag, you will be prompted to enter the
secret value in the terminal.
$ flyte create secret my_secret
Enter secret value:If --from-file is specified, the value will be read from the file instead of being provided directly:
$ flyte create secret my_secret --from-file /path/to/secret_fileThe --type option can be used to create specific types of secrets.
Either regular or image_pull can be specified.
Secrets intended to access container images should be specified as image_pull.
Other secrets should be specified as regular.
If no type is specified, regular is assumed.
For image pull secrets, you have several options:
- Interactive mode (prompts for registry, username, password):
$ flyte create secret my_secret --type image_pull- With explicit credentials:
$ flyte create secret my_secret --type image_pull --registry ghcr.io --username myuser- Lastly, you can create a secret from your existing Docker installation (i.e., you’ve run
docker loginin the past) and you just want to pull from those credentials. Since you may have logged in to multiple registries, you can specify which registries to include. If no registries are specified, all registries are added.
$ flyte create secret my_secret --type image_pull --from-docker-config --registries ghcr.io,docker.io| Option | Type | Default | Description |
|---|---|---|---|
--value |
text |
Sentinel.UNSET |
Secret value Mutually exclusive with from_file, from_docker_config, registry. |
--from-file |
path |
Sentinel.UNSET |
Path to the file with the binary secret. Mutually exclusive with value, from_docker_config, registry. |
--type |
choice |
regular |
Type of the secret. |
--from-docker-config |
boolean |
False |
Create image pull secret from Docker config file (only for –type image_pull). Mutually exclusive with value, from_file, registry, username, password. |
--docker-config-path |
path |
Sentinel.UNSET |
Path to Docker config file (defaults to ~/.docker/config.json or $DOCKER_CONFIG). Requires from_docker_config. |
--registries |
text |
Sentinel.UNSET |
Comma-separated list of registries to include (only with –from-docker-config). |
--registry |
text |
Sentinel.UNSET |
Registry hostname (e.g., ghcr.io, docker.io) for explicit credentials (only for –type image_pull). Mutually exclusive with value, from_file, from_docker_config. |
--username |
text |
Sentinel.UNSET |
Username for the registry (only with –registry). |
--password |
text |
Sentinel.UNSET |
Password for the registry (only with –registry). If not provided, will prompt. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte create trigger
flyte create trigger [OPTIONS] TASK_NAME NAME
Create a new trigger for a task. The task name and trigger name are required.
Example:
$ flyte create trigger my_task my_trigger --schedule "0 0 * * *"This will create a trigger that runs every day at midnight.
| Option | Type | Default | Description |
|---|---|---|---|
--schedule |
text |
Sentinel.UNSET |
Cron schedule for the trigger. Defaults to every minute. |
--description |
text |
`` | Description of the trigger. |
--auto-activate |
boolean |
True |
Whether the trigger should not be automatically activated. Defaults to True. |
--trigger-time-var |
text |
trigger_time |
Variable name for the trigger time in the task inputs. Defaults to ’trigger_time’. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte create user
Note: This command is provided by the
flyteplugins.unionplugin.
flyte create user [OPTIONS]
Create (invite) a new user.
Examples:
$ flyte --org my-org create user --first-name Jane --last-name Doe --email [email protected]
$ flyte --org my-org create user --first-name Jane --last-name Doe --email [email protected] --policy admin
| Option | Type | Default | Description |
|---|---|---|---|
--first-name |
text |
Sentinel.UNSET |
First name of the user |
--last-name |
text |
Sentinel.UNSET |
Last name of the user |
--email |
text |
Sentinel.UNSET |
Email address of the user |
--policy |
text |
Policy to assign to the user after creation | |
--help |
boolean |
False |
Show this message and exit. |
flyte delete
flyte delete COMMAND [ARGS]...
Remove resources from a Flyte deployment.
flyte delete api-key
Note: This command is provided by the
flyteplugins.unionplugin.
flyte delete api-key [OPTIONS] CLIENT_ID
Delete an API key.
Examples:
# Delete an API key (with confirmation)
$ flyte delete api-key my-client-id
# Delete without confirmation
$ flyte delete api-key my-client-id --yes
| Option | Type | Default | Description |
|---|---|---|---|
--yes |
boolean |
False |
Skip confirmation prompt |
--help |
boolean |
False |
Show this message and exit. |
flyte delete app
flyte delete app [OPTIONS] NAME
Delete apps from a Flyte deployment.
| Option | Type | Default | Description |
|---|---|---|---|
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte delete assignment
Note: This command is provided by the
flyteplugins.unionplugin.
flyte delete assignment [OPTIONS]
Unassign a policy from an identity.
One of –user-subject or –creds-subject must be provided.
Examples:
$ flyte --org my-org delete assignment --user-subject user-123 --policy admin
$ flyte --org my-org delete assignment --creds-subject app-456 --policy admin
| Option | Type | Default | Description |
|---|---|---|---|
--user-subject |
text |
User subject identifier | |
--creds-subject |
text |
Client credentials application subject | |
--policy |
text |
Sentinel.UNSET |
Policy name to unassign |
--yes |
boolean |
False |
Skip confirmation prompt |
--help |
boolean |
False |
Show this message and exit. |
flyte delete policy
Note: This command is provided by the
flyteplugins.unionplugin.
flyte delete policy [OPTIONS] NAME
Delete a policy.
Examples:
$ flyte --org my-org delete policy my-policy
$ flyte --org my-org delete policy my-policy --yes
| Option | Type | Default | Description |
|---|---|---|---|
--yes |
boolean |
False |
Skip confirmation prompt |
--help |
boolean |
False |
Show this message and exit. |
flyte delete role
Note: This command is provided by the
flyteplugins.unionplugin.
flyte delete role [OPTIONS] NAME
Delete a role.
Examples:
$ flyte --org my-org delete role my-role
$ flyte --org my-org delete role my-role --yes
| Option | Type | Default | Description |
|---|---|---|---|
--yes |
boolean |
False |
Skip confirmation prompt |
--help |
boolean |
False |
Show this message and exit. |
flyte delete secret
flyte delete secret [OPTIONS] NAME
Delete a secret. The name of the secret is required.
| Option | Type | Default | Description |
|---|---|---|---|
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte delete trigger
flyte delete trigger [OPTIONS] NAME TASK_NAME
Delete a trigger. The name of the trigger is required.
| Option | Type | Default | Description |
|---|---|---|---|
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte delete user
Note: This command is provided by the
flyteplugins.unionplugin.
flyte delete user [OPTIONS] SUBJECT
Delete a user.
Examples:
$ flyte --org my-org delete user user-subject-id
$ flyte --org my-org delete user user-subject-id --yes
| Option | Type | Default | Description |
|---|---|---|---|
--yes |
boolean |
False |
Skip confirmation prompt |
--help |
boolean |
False |
Show this message and exit. |
flyte deploy
flyte deploy [OPTIONS] COMMAND [ARGS]...
Deploy one or more environments from a python file.
This command will create or update environments in the Flyte system, registering all tasks and their dependencies.
Example usage:
flyte deploy hello.py my_envArguments to the deploy command are provided right after the deploy command and before the file name.
To deploy all environments in a file, use the --all flag:
flyte deploy --all hello.pyTo recursively deploy all environments in a directory and its subdirectories, use the --recursive flag:
flyte deploy --recursive ./srcYou can combine --all and --recursive to deploy everything:
flyte deploy --all --recursive ./srcYou can provide image mappings with --image flag. This allows you to specify
the image URI for the task environment during CLI execution without changing
the code. Any images defined with Image.from_ref_name("name") will resolve to the
corresponding URIs you specify here.
flyte deploy --image my_image=ghcr.io/myorg/my-image:v1.0 hello.py my_envIf the image name is not provided, it is regarded as a default image and will be used when no image is specified in TaskEnvironment:
flyte deploy --image ghcr.io/myorg/default-image:latest hello.py my_envYou can specify multiple image arguments:
flyte deploy --image ghcr.io/org/default:latest --image gpu=ghcr.io/org/gpu:v2.0 hello.py my_envTo deploy a specific version, use the --version flag:
flyte deploy --version v1.0.0 hello.py my_envTo preview what would be deployed without actually deploying, use the --dry-run flag:
flyte deploy --dry-run hello.py my_envYou can specify the --config flag to point to a specific Flyte cluster:
flyte --config my-config.yaml deploy hello.py my_envYou can override the default configured project and domain:
flyte deploy --project my-project --domain development hello.py my_envIf loading some files fails during recursive deployment, you can use the --ignore-load-errors flag
to continue deploying the environments that loaded successfully:
flyte deploy --recursive --ignore-load-errors ./srcOther arguments to the deploy command are listed below.
To see the environments available in a file, use --help after the file name:
flyte deploy hello.py --help| Option | Type | Default | Description |
|---|---|---|---|
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--version |
text |
Sentinel.UNSET |
Version of the environment to deploy |
--dry-run--dryrun |
boolean |
False |
Dry run. Do not actually call the backend service. |
--copy-style |
choice |
loaded_modules |
Copy style to use when running the task |
--root-dir |
text |
Sentinel.UNSET |
Override the root source directory, helpful when working with monorepos. |
--recursive-r |
boolean |
False |
Recursively deploy all environments in the current directory |
--all |
boolean |
False |
Deploy all environments in the current directory, ignoring the file name |
--ignore-load-errors-i |
boolean |
False |
Ignore errors when loading environments especially when using –recursive or –all. |
--no-sync-local-sys-paths |
boolean |
False |
Disable synchronization of local sys.path entries under the root directory to the remote container. |
--image |
text |
Sentinel.UNSET |
Image to be used in the run. Format: imagename=imageuri. Can be specified multiple times. |
--help |
boolean |
False |
Show this message and exit. |
flyte gen
flyte gen COMMAND [ARGS]...
Generate documentation.
flyte gen docs
flyte gen docs [OPTIONS]
Generate documentation.
| Option | Type | Default | Description |
|---|---|---|---|
--type |
text |
Sentinel.UNSET |
Type of documentation (valid: markdown) |
--plugin-variants |
text |
Hugo variant names for plugin commands (e.g., ‘byoc selfmanaged’). When set, plugin command sections and index entries are wrapped in {{< variant >}} shortcodes. Core commands appear unconditionally. | |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get
flyte get COMMAND [ARGS]...
Retrieve resources from a Flyte deployment.
You can get information about projects, runs, tasks, actions, secrets, logs and input/output values.
Each command supports optional parameters to filter or specify the resource you want to retrieve.
Using a get subcommand without any arguments will retrieve a list of available resources to get.
For example:
get project(without specifying a project), will list all projects.get project my_projectwill return the details of the project namedmy_project.
In some cases, a partially specified command will act as a filter and return available further parameters. For example:
get action my_runwill return all actions for the run namedmy_run.get action my_run my_actionwill return the details of the action namedmy_actionfor the runmy_run.
flyte get action
flyte get action [OPTIONS] RUN_NAME [ACTION_NAME]
Get all actions for a run or details for a specific action.
| Option | Type | Default | Description |
|---|---|---|---|
--in-phase |
choice |
Sentinel.UNSET |
Filter actions by their phase. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get api-key
Note: This command is provided by the
flyteplugins.unionplugin.
flyte get api-key [OPTIONS] [CLIENT_ID]
Get or list API keys.
If CLIENT-ID is provided, gets a specific API key. Otherwise, lists all API keys.
Examples:
# List all API keys
$ flyte get api-key
# List with a limit
$ flyte get api-key --limit 10
# Get a specific API key
$ flyte get api-key my-client-id
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Maximum number of keys to list |
--help |
boolean |
False |
Show this message and exit. |
flyte get app
flyte get app [OPTIONS] [NAME]
Get a list of all apps, or details of a specific app by name.
Apps are long-running services deployed on the Flyte platform.
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Limit the number of apps to fetch when listing. |
--only-mine |
boolean |
False |
Show only apps created by the current user (you). |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get assignment
Note: This command is provided by the
flyteplugins.unionplugin.
flyte get assignment [OPTIONS]
Get or list assignments.
Without –user-subject or –creds-subject, lists all assignments.
Examples:
$ flyte --org my-org get assignment
$ flyte --org my-org get assignment --user-subject user-123
$ flyte --org my-org get assignment --creds-subject app-456
| Option | Type | Default | Description |
|---|---|---|---|
--user-subject |
text |
User subject identifier | |
--creds-subject |
text |
Client credentials application subject | |
--help |
boolean |
False |
Show this message and exit. |
flyte get config
flyte get config
Shows the automatically detected configuration to connect with the remote backend.
The configuration will include the endpoint, organization, and other settings that are used by the CLI.
flyte get io
flyte get io [OPTIONS] RUN_NAME [ACTION_NAME]
Get the inputs and outputs of a run or action.
If only the run name is provided, it will show the inputs and outputs of the root action of that run.
If an action name is provided, it will show the inputs and outputs for that action.
If --inputs-only or --outputs-only is specified, it will only show the inputs or outputs respectively.
Examples:
$ flyte get io my_run$ flyte get io my_run my_action| Option | Type | Default | Description |
|---|---|---|---|
--inputs-only-i |
boolean |
False |
Show only inputs |
--outputs-only-o |
boolean |
False |
Show only outputs |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get logs
flyte get logs [OPTIONS] RUN_NAME [ACTION_NAME]
Stream logs for the provided run or action. If only the run is provided, only the logs for the parent action will be streamed:
$ flyte get logs my_runIf you want to see the logs for a specific action, you can provide the action name as well:
$ flyte get logs my_run my_actionBy default, logs will be shown in the raw format and will scroll the terminal.
If automatic scrolling and only tailing --lines number of lines is desired, use the --pretty flag:
$ flyte get logs my_run my_action --pretty --lines 50| Option | Type | Default | Description |
|---|---|---|---|
--lines-l |
integer |
30 |
Number of lines to show, only useful for –pretty |
--show-ts |
boolean |
False |
Show timestamps |
--pretty |
boolean |
False |
Show logs in an auto-scrolling box, where number of lines is limited to --lines |
--attempt-a |
integer |
Attempt number to show logs for, defaults to the latest attempt. | |
--filter-system |
boolean |
False |
Filter all system logs from the output. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get member
Note: This command is provided by the
flyteplugins.unionplugin.
flyte get member
List all members (users and applications) in an organization.
Examples:
$ flyte --org my-org get member
flyte get policy
Note: This command is provided by the
flyteplugins.unionplugin.
flyte get policy [OPTIONS] [NAME]
Get or list policies.
If NAME is provided, gets a specific policy. Otherwise, lists all policies.
Examples:
$ flyte --org my-org get policy
$ flyte --org my-org get policy --limit 10
$ flyte --org my-org get policy my-policy
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Maximum number of policies to list |
--help |
boolean |
False |
Show this message and exit. |
flyte get project
flyte get project [OPTIONS] [NAME]
Get a list of all projects, or details of a specific project by name.
By default, only active (unarchived) projects are shown. Use --archived to
show archived projects instead.
| Option | Type | Default | Description |
|---|---|---|---|
--archived |
boolean |
False |
Show archived projects instead of active ones. |
--help |
boolean |
False |
Show this message and exit. |
flyte get role
Note: This command is provided by the
flyteplugins.unionplugin.
flyte get role [OPTIONS] [NAME]
Get or list roles.
If NAME is provided, gets a specific role. Otherwise, lists all roles.
Examples:
$ flyte --org my-org get role
$ flyte --org my-org get role --limit 10
$ flyte --org my-org get role my-role
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Maximum number of roles to list |
--help |
boolean |
False |
Show this message and exit. |
flyte get run
flyte get run [OPTIONS] [NAME]
Get a list of all runs, or details of a specific run by name.
The run details will include information about the run, its status, but only the root action will be shown.
If you want to see the actions for a run, use get action <run_name>.
You can filter runs by task name and optionally task version:
$ flyte get run --task-name my_task
$ flyte get run --task-name my_task --task-version v1.0| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Limit the number of runs to fetch when listing. |
--in-phase |
choice |
Sentinel.UNSET |
Filter runs by their status. |
--only-mine |
boolean |
False |
Show only runs created by the current user (you). |
--task-name |
text |
Filter runs by task name. | |
--task-version |
text |
Filter runs by task version. | |
--created-after |
datetime |
Show runs created at or after this datetime (UTC). Accepts ISO dates, ’now’, ’today’, or ’now - 1 day’. | |
--created-before |
datetime |
Show runs created before this datetime (UTC). | |
--updated-after |
datetime |
Show runs updated at or after this datetime (UTC). Accepts ISO dates, ’now’, ’today’, or ’now - 1 day'. | |
--updated-before |
datetime |
Show runs updated before this datetime (UTC). | |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get secret
flyte get secret [OPTIONS] [NAME]
Get a list of all secrets, or details of a specific secret by name.
| Option | Type | Default | Description |
|---|---|---|---|
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get task
flyte get task [OPTIONS] [NAME] [VERSION]
Retrieve a list of all tasks, or details of a specific task by name and version.
Currently, both name and version are required to get a specific task.
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Limit the number of tasks to fetch. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get trigger
flyte get trigger [OPTIONS] [TASK_NAME] [NAME]
Get a list of all triggers, or details of a specific trigger by name.
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Limit the number of triggers to fetch. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |
flyte get user
Note: This command is provided by the
flyteplugins.unionplugin.
flyte get user [OPTIONS] [SUBJECT]
Get or list users.
If SUBJECT is provided, gets a specific user. Otherwise, lists all users.
Examples:
$ flyte --org my-org get user
$ flyte --org my-org get user --limit 10
$ flyte --org my-org get user user-subject-id
$ flyte --org my-org get user --email [email protected]
| Option | Type | Default | Description |
|---|---|---|---|
--limit |
integer |
100 |
Maximum number of users to list |
--email |
text |
Filter by email address | |
--help |
boolean |
False |
Show this message and exit. |
flyte prefetch
flyte prefetch COMMAND [ARGS]...
Prefetch artifacts from remote registries.
These commands help you download and prefetch artifacts like HuggingFace models to your Flyte storage for faster access during task execution.
flyte prefetch hf-model
flyte prefetch hf-model [OPTIONS] REPO
Prefetch a HuggingFace model to Flyte storage.
Downloads a model from the HuggingFace Hub and prefetches it to your configured Flyte storage backend. This is useful for:
- Pre-fetching large models before running inference tasks
- Sharding models for tensor-parallel inference
- Avoiding repeated downloads during development
Basic Usage:
$ flyte prefetch hf-model meta-llama/Llama-2-7b-hf --hf-token-key HF_TOKENWith Sharding:
Create a shard config file (shard_config.yaml):
engine: vllm
args:
tensor_parallel_size: 8
dtype: auto
trust_remote_code: trueThen run:
$ flyte prefetch hf-model meta-llama/Llama-2-70b-hf \
--shard-config shard_config.yaml \
--accelerator A100:8 \
--hf-token-key HF_TOKENWait for Completion:
$ flyte prefetch hf-model meta-llama/Llama-2-7b-hf --wait| Option | Type | Default | Description |
|---|---|---|---|
--raw-data-path |
text |
Object store path to store the model. If not provided, the model will be stored using the default path generated by Flyte storage layer. | |
--artifact-name |
text |
Artifact name to use for the stored model. Must only contain alphanumeric characters, underscores, and hyphens. If not provided, the repo name will be used (replacing ‘.’ with ‘-’). | |
--architecture |
text |
Sentinel.UNSET |
Model architecture, as given in HuggingFace config.json. |
--task |
text |
auto |
Model task, e.g., ‘generate’, ‘classify’, ’embed’, ‘score’, etc. Refer to vLLM docs. ‘auto’ will try to discover this automatically. |
--modality |
text |
('text',) |
Modalities supported by the model, e.g., ’text’, ‘image’, ‘audio’, ‘video’. Can be specified multiple times. |
--format |
text |
Sentinel.UNSET |
Model serialization format, e.g., safetensors, onnx, torchscript, joblib, etc. |
--model-type |
text |
Sentinel.UNSET |
Model type, e.g., ’transformer’, ‘xgboost’, ‘custom’, etc. For HuggingFace models, this is auto-determined from config.json[‘model_type’]. |
--short-description |
text |
Sentinel.UNSET |
Short description of the model. |
--force |
integer |
0 |
Force store of the model. Increment value (–force=1, –force=2, …) to force a new store. |
--wait |
boolean |
False |
Wait for the model to be stored before returning. |
--hf-token-key |
text |
HF_TOKEN |
Name of the Flyte secret containing your HuggingFace token. Note: This is not the HuggingFace token itself, but the name of the secret in the Flyte secret store. |
--cpu |
text |
2 |
CPU request for the prefetch task (e.g., ‘2’, ‘4’, ‘2,4’ for 2-4 CPUs). |
--mem |
text |
8Gi |
Memory request for the prefetch task (e.g., ‘16Gi’, ‘64Gi’, ‘16Gi,64Gi’ for 16-64GB). |
--gpu |
choice |
The gpu to use for downloading and (optionally) sharding the model. Format: ‘{type}:{quantity}’ (e.g., ‘A100:8’, ‘L4:1’). | |
--disk |
text |
50Gi |
Disk storage request for the prefetch task (e.g., ‘100Gi’, ‘500Gi’). |
--shm |
text |
Shared memory request for the prefetch task (e.g., ‘100Gi’, ‘auto’). | |
--shard-config |
path |
Sentinel.UNSET |
Path to a YAML file containing sharding configuration. The file should have ’engine’ (currently only ‘vllm’) and ‘args’ keys. |
-p--project |
text |
Project to which this command applies. | |
-d--domain |
text |
Domain to which this command applies. | |
--help |
boolean |
False |
Show this message and exit. |