> ## 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 objects import

> Import records into an index.

```txt Usage theme={"system"}
algolia objects import <index> -F <file> [flags]
```

## Examples

Import records from the "data.ndjson" file into the "MOVIES" index:

```sh icon=square-terminal theme={"system"}
algolia objects import MOVIES -F data.ndjson
```

Import records from the standard input into the "MOVIES" index:

```sh icon=square-terminal theme={"system"}
cat data.ndjson | algolia objects import MOVIES -F -
```

Browse records in the "SERIES" index and import them into the "MOVIES" index:

```sh icon=square-terminal theme={"system"}
algolia objects browse SERIES | algolia objects import MOVIES -F -
```

## Flags

<ParamField body="-a, --auto-generate-object-id-if-not-exist">
  Auto-generate object IDs if they don't exist
</ParamField>

<ParamField body="-b, --batch-size">
  Specify the upload batch size
</ParamField>

<ParamField body="-F, --file">
  Import records from a `file` (use "-" to read from standard input)
</ParamField>

<ParamField body="-w, --wait">
  wait for the operation to complete
</ParamField>
