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

# algolia indices config export

> Export an index configuration (settings, synonyms, rules) to a file.

```txt Usage theme={"system"}
algolia indices config export <index> [--scope <scope>...] [--directory] [flags]
```

## Examples

Export the config of the index 'MOVIES' to a .json filr in the current folder:

```sh icon=square-terminal theme={"system"}
algolia index config export MOVIES
```

Export the synonyms and rules of the index 'MOVIES' to a .json file in the current folder:

```sh icon=square-terminal theme={"system"}
algolia index config export MOVIES --scope synonyms,rules
```

Export the config of the index 'MOVIES' to a .json file in the 'exports' folder:

```sh icon=square-terminal theme={"system"}
algolia index config export MOVIES --directory exports
```

## Flags

<ParamField body="-d, --directory">
  Directory path of the output file (default: current folder)
</ParamField>

<ParamField body="-s, --scope">
  Scope to export (default: all)
</ParamField>
