Flytectl: The Official Flyte Command-line Interface#

Overview#

This video will take you on a tour of Flytectl - how to install and configure it, as well as how to use the Verbs and Nouns sections on the left hand side menu. Detailed information can be found in the sections below the video.

Installation#

Flytectl is a Golang binary that can be installed on any platform supported by Golang.

brew install flyteorg/homebrew-tap/flytectl

Upgrade existing installation using the following command:

flytectl upgrade
curl -sL https://ctl.flyte.org/install | bash

Upgrade existing installation using the following command:

flytectl upgrade

Test if Flytectl is installed correctly (your Flytectl version should be > 0.2.0) using the following command:

flytectl version

Configuration#

Flytectl allows you to communicate with FlyteAdmin using a YAML file or by passing every configuration value on the command-line. The following configuration can be used for the setup:

Basic Configuration#

The full list of available configurable options can be found by running flytectl --help, or here.

Note

Currently, the Project -p, Domain -d, and Output -o flags cannot be used in the config file.

Automatically configured for you by flytectl sandbox command.

admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///localhost:30081
  insecure: true # Set to false to enable TLS/SSL connection (not recommended except on local sandbox deployment).
  authType: Pkce # authType: Pkce # if using authentication or just drop this.
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///<replace-me>
  authType: Pkce # authType: Pkce # if using authentication or just drop this.
  insecure: true # insecure: True # Set to true if the endpoint isn't accessible through TLS/SSL connection (not recommended except on local sandbox deployment)
admin:
  # For GRPC endpoints you might want to use dns:///flyte.myexample.com
  endpoint: dns:///<replace-me>
  authType: Pkce # authType: Pkce # if using authentication or just drop this.
  insecure: false # insecure: True # Set to true if the endpoint isn't accessible through TLS/SSL connection (not recommended except on local sandbox deployment)

For other supported storage backends like Oracle, Azure, etc., refer to the configuration structure here.

Place the config file in $HOME/.flyte directory with the name config.yaml. This file is typically searched in:

  • $HOME/.flyte

  • currDir from where you run flytectl

  • /etc/flyte/config

You can also pass the file name in the command line using --config <config-file-path>.