> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tensorone.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Managing Clusters

> Learn how to start, stop, terminate, and list Tensor One Clusters using the CLI.

***

Efficiently manage your Clusters using the **Tensor One CLI**. This guide covers how to start Clusters (individually or in bulk), stop or schedule a stop, terminate Clusters, and list all active Clusters.

***

## Start a Cluster

To start a **single Cluster**, run:

```bash
tensoronecli start cluster $TENSORONE_CLUSTER_ID
```

***

## Start Multiple Clusters (Bulk Start)

Start multiple Clusters simultaneously with:

```bash
tensoronecli create clusters \
  --name bulk-task \
  --gpuType "NVIDIA GeForce RTX 3070,NVIDIA GeForce RTX 3080" \
  --imageName "tensorone/your-image-name" \
  --containerDiskSize 10 \
  --volumeSize 0 \
  --mem 1 \
  --args "bash -c 'your-bash-command'"
```

This command creates up to **10 Clusters** using the specified GPUs and runs a given `bash` command on each one.

***

## Stop a Cluster

To stop a single Cluster:

```bash
tensoronecli stop cluster $TENSORONE_CLUSTER_ID
```

***

## Stop a Cluster After a Set Duration

To automatically stop a Cluster after a specific amount of time (e.g., 2 hours):

```bash
sleep 2h; tensoronecli stop cluster $TENSORONE_CLUSTER_ID &
```

* `sleep 2h` waits for 2 hours
* `&` runs the stop command in the background

**Note**: Idle Clusters **still incur storage charges**. Be sure to terminate Clusters when persistent storage is no longer needed.

***

## Terminate a Cluster

**Warning**: Terminating a Cluster **permanently deletes all data** not stored on a network volume. Ensure you back up anything critical.

Terminate a single Cluster with:

```bash
tensoronecli remove cluster $TENSORONE_CLUSTER_ID
```

Terminate multiple Clusters (up to 40) by name:

```bash
tensoronecli remove clusters my-bulk-task --clusterCount 40
```

***

## List Active Clusters

To list all active Clusters:

```bash
tensoronecli get cluster
```

This displays a summary of all currently active or available Clusters.

You're now ready to efficiently manage your Clusters using the full power of `tensoronecli`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.