uctl
is an enhanced version of flytectl
, the Flyte command-line tool,
that lets you manage not only Flyte entities (projects, domains, workflows, tasks, and launch plans)
but also Union-specific entities like users, roles, and Union configurations.
You can find full documentation here.
To install uctl
, you can use Homebrew on macOS or curl
on macOS, Linux, or Windows.
To download manually, see the uctl
releases.
To use Homebrew, do this:
brew tap unionai/homebrew-tap
brew install uctl
If you already have uctl
and want to upgrade to latest version:
brew update
brew upgrade uctl
To use curl
, set BINDIR
to the install location (it defaults to ./bin
) and run the following command:
curl -sL https://raw.githubusercontent.com/unionai/uctl/main/install.sh | bash
To use curl
, set BINDIR
to the install location (it defaults to ./bin
) and run the following command:
curl -sL https://raw.githubusercontent.com/unionai/uctl/main/install.sh | bash
To use curl
, in a Linux shell (such as WSL), set BINDIR
to the install location (it defaults to ./bin
) and run the following command:
curl -sL https://raw.githubusercontent.com/unionai/uctl/main/install.sh | bash
To configure uctl
to connect to your Union instance, run the following command:
uctl config init --host <union-host-url>
Where <union-host-url>
is the URL of your Union instance.
This will create a new configuration file at ~/.union/config.yaml
:
union:
connection:
host: dns:///<union-host-url>
insecure: false
auth:
type: Pkce
admin:
endpoint: dns:///<union-host-url>
insecure: false
authType: Pkce
The uctl
CLI will use this configuration file to connect to your Union instance by default unless you override it.
The search order for finding the configuration file is:
--config <path-to-config>
flag.UNION_CONFIG
environment variable: the same variable as used by theunion CLI
.UCTL_CONFIG
environment variable: for backward compatibility with earlier versions ofuctl
.~/.union/config.yaml
: the default, and the one created by the command above.~/.uctl/config.yaml
: for backward compatibility with earlier versions ofuctl
.
For details on the parameters in the configuration file, see CLI Authentication.
For details on the union
CLI, see union CLI.