# Download Datasets

The `download` command is used to download all datasets specified. Please refer to [Datasets](https://ambiqai.github.io/sleepkit/datasets/) for details on the available datasets. Additional datasets can be added by creating a new dataset class and registering it with __sleepKIT__ dataset factory.

## Usage

### CLI

Using the CLI, the `download` command can be used to download specified datasets in the configuration file or directly in the command line.

```bash title="Terminal"
sleepkit -m download -c '{"datasets": [{"name": "cmidss", "params": {"path": "./datasets/cmidss"}}]}'
```

### Python

In code, the `download` method of a dataset can be used to download the dataset.

```py title="Python example" linenums="1"
import sleepkit as sk

ds = sk.DatasetFactory.get("cmidss")(path="./datasets/cmidss")
ds.download()

```

## Arguments

Please refer to [TaskParams](https://ambiqai.github.io/sleepkit/modes/configuration/#taskparams) for the list of arguments that can be used with the `download` command.

---
