Requires Together CLI 2.40+. Earlier versions used
tg beta clusters. CLI 3.0 removed that path, so update any scripts that still call it. Check your version with tg --version. To install or upgrade, see Get started.Create a cluster
Parameters
Run
tg clusters create with no flags to launch an interactive prompt that walks through the required fields. Pass --non-interactive or --json to skip the prompts. The command also runs non-interactively when no terminal is attached, as in CI.- Pass
--nvidia-version-id, without--nvidia-driver-version,--cuda-version, or--os. - Pass
--nvidia-driver-versionand--cuda-versiontogether, optionally with--os.
Update a cluster
Parameters
Retrieve a cluster
Delete a cluster
--force to delete without confirming. The global --non-interactive and --json flags also suppress the prompt, so scripted and CI deletions never wait for input.
Parameters
List clusters
tg clusters list --after <CLUSTER_ID> command that fetches the next page. With --json, it returns every cluster and ignores --after.
List regions
Get configuration information per region for creating a GPU cluster.Example output
id is its NVIDIA version catalog ID. Pass it to tg clusters create --nvidia-version-id to select that exact driver, CUDA, and OS combination.
SSH into a cluster
SSH into a Slurm cluster with a short-lived certificate. The command opens your browser to sign in with OpenID Connect (OIDC), requests a certificate from the cluster’s certificate authority, and connects through the bastion host. No API key or long-lived SSH key is required.Requires Python 3.10+.
tg beta clusters ssh, delete beta. Connect over SSH explains the <LOCATION> and <LOGIN> values.
Parameters
Any other arguments after
DEX_URL are passed through to ssh as a remote command.
On the bastion-to-target hop, the CLI disables SSH host key verification (
StrictHostKeyChecking=no). Cluster hosts are reprovisioned frequently, so their host keys aren’t pinned. Authentication uses the short-lived step-ca user certificate from the OIDC flow, not the target host key.Get cluster credentials
Download the cluster’s configuration and credentials to your local.kube/config file to manage Kubernetes resources.
Parameters
In
--json mode, the command prints the target path as kubeconfig_path and doesn’t write or merge the kubeconfig. The CLI turns on JSON output automatically when it detects an AI agent, so pass --no-json to write the file from an agent session.Create a node remediation
Create a node repair directly, without waiting for an automated recommendation.INSTANCE_ID, run tg clusters retrieve <CLUSTER_ID> --json and copy the node’s instance_id (not its node_id) from gpu_worker_nodes.
Parameters
List node remediations
INSTANCE_ID to list remediations for every node in the cluster. To match any of several values, repeat --mode, --state, or --trigger.
Parameters
Retrieve a node remediation
Approve a node remediation
Approve a node repair remediation that’s waiting for review. Find these remediations and their IDs withtg clusters remediations list, or in your cluster’s Repairs tab in the console.
Parameters
Approving a remediation that would run as
HOST_POWER_CYCLE returns a 403 when host power cycle isn’t enabled for the node’s hardware. This applies whether you pass the mode with --mode or it’s the remediation’s existing mode.Overriding to --mode HOST_AWARE returns a 412 unless the node has a critical health check alert, firing now or on its host in the last 10 days.Reject a node remediation
Reject a remediation that’s waiting for review.Parameters
Cancel a node remediation
Cancel a remediation that hasn’t started running.Create cluster storage
Parameters
When you create a volume through the API or SDK, you can also pass
project_id to assign it to a specific project. If you omit it, the volume belongs to your default project.
Update cluster storage
Resize a storage volume.Parameters
Retrieve cluster storage
List cluster storage
tg clusters storage list --after <VOLUME_ID> command that fetches the next page. With --json, it returns every volume and ignores --after.
Delete cluster storage
--force to delete without confirming. The global --non-interactive and --json flags also suppress the prompt, so scripted and CI deletions never wait for input.