> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Rolling Index Configuration File

You can use a rolling index configuration file to specify the settings required when you create one rolling index using the Atlas CLI. The Atlas CLI accepts `.json` rolling index configuration files.

## Available Settings

When you create one rolling index using a configuration file, you can specify any settings that are listed in [Create One Rolling Index](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-creategroupclusterindexrollingindex) under Request Body Schema.

**See also: Rolling Index File Examples**

- [Unique indexes](https://github.com/mongodb/mongodb-atlas-cli/blob/master/test/e2e/atlas/clusters/file/clustersfile/testdata/create_2dspere_index.json)

- [Sparse indexes](https://github.com/mongodb/mongodb-atlas-cli/blob/master/test/e2e/atlas/clusters/file/clustersfile/testdata/create_sparse_index.json)

- [Partial indexes](https://github.com/mongodb/mongodb-atlas-cli/blob/master/test/e2e/atlas/clusters/file/clustersfile/testdata/create_partial_index.json)

## Create a Configuration File

Follow these steps to create one rolling index with a configuration file:

1. Copy the sample request for [Create One Rolling Index](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-creategroupclusterindexrollingindex).

   Navigate to the [Create One Rolling Index](https://www.mongodb.com/docs/api/doc/atlas-admin-api-v2/operation/operation-creategroupclusterindexrollingindex) section of the Atlas Admin API specification.

   Under Request samples on the right side, click Expand all.

   Click Copy to copy the sample request.

2. Create the configuration file.

   Paste the sample request into a text editor and change the values to reflect your desired configuration.

   Save the file with a `.json` extension.

3. Run the [atlas clusters search nodes create](https://www.mongodb.com/docs/atlas/cli/current/command/atlas-clusters-search-nodes-create.md#std-label-atlas-clusters-search-nodes-create) command with the `--file` option.

   Specify the path to the file you saved with the `--file` flag.
