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

# batch

> Run your model on all the datasets referenced in the openlayer.json file

The `openlayer batch` command runs the command specified in the `batchCommand`
field of your [openlayer.json](/development/openlayer-json#batchcommand).

## Usage

```bash theme={null}
openlayer batch
```

The `batchCommand` field in the [openlayer.json](/development/openlayer-json#batchcommand) specifies the command
that runs your model.

Therefore, the `openlayer batch` is a streamlined command to run your model on all the
datasets referenced in the [openlayer.json](/development/openlayer-json#batchcommand) file.

### Run on a specific dataset

If you want to specify a dataset to generate outputs on, you can use the `--dataset` option:

```bash theme={null}
openlayer batch --dataset=[dataset name]
```

### Run with custom arguments

You can pass custom arguments to your batch command using the `--custom-args` flag.
Arguments should be provided as a comma-separated list of key=value pairs:

```bash theme={null}
openlayer batch --custom-args learning_rate=0.01,batch_size=32
```

These arguments will be merged with any defaults specified in your `openlayer.json`.
If the same key appears in both places, the CLI flag value takes precedence.

## Flags

| Flag            | Default | Description                                                          |
| --------------- | ------- | -------------------------------------------------------------------- |
| `--dataset`     | `""`    | Run the batch command only on the specified dataset.                 |
| `--custom-args` | `""`    | Comma-separated list of key=value pairs to pass as custom arguments. |

## Related guides

* [How can I use GitHub Actions with Openlayer?](/guides/gh-actions)
* [How can I use the Openlayer CLI for the development mode workflow?](/guides/cli-push)
