Skip to main content

TrueFoundry CLI Library

TrueFoundry CLI library to help you interact with the platform programmatically.
Truefoundry CLI is a very lightweight CLI that only exposes the most common functionality and doesn’t provide interaction with all APIs of Truefoundry. For that, we recommend using the APIs of Truefoundry directly or using the TrueFoundry Python SDK.

Install Truefoundry CLI

You need Python ≥ 3.10, ≤ 3.14 to use truefoundry v0.17.0 and later. See Minimum Python version raised to 3.10 — truefoundry v0.17.0.
Releases before v0.17.0 support Python ≥ 3.8, ≤ 3.14.
Optional features can be installed with extras.
NOTE: workflow and spark extras are only supported on Python ≥ 3.10, ≤ 3.12

Authenticate CLI

To be able to use the TrueFoundry CLI, you first need to authenticate. You can login either via browser or using API Key.
To log in to TrueFoundry, run the following command:
The value for --host is the first part of the url when you open the platform. This domain might be subdomain of your organization. The below example shows https://myorg.truefoundry.cloud
This will prompt you to open a URL and show you a Submit button.Once you click on Submit, you will be signed in to the CLI.