Skip to main content
Usage
algolia objects update <index> -F <file> [--create-if-not-exists] [--wait] [--continue-on-error] [flags]

Examples

Update the “MOVIES” index with records from the “objects.ndjson” file:
algolia objects update MOVIES -F objects.ndjson
Update the “MOVIES” index with records from the “objects.ndjson” file and create the records if they don’t exist:
algolia objects update MOVIES -F objects.ndjson --create-if-not-exists
Update the “MOVIES” index with records from the “objects.ndjson” file and wait for the operation to complete:
algolia objects update MOVIES -F objects.ndjson --wait
Update the “MOVIES” index with records from the “objects.ndjson” file and continue updating records even if some are invalid:
algolia objects update MOVIES -F objects.ndjson --continue-on-error

Flags

-C, --continue-on-error
Continue updating records even if some are invalid.
-c, --create-if-not-exists
If provided, updating a nonexistent object will create a new one with the objectID and the attributes defined in the file
--dry-run
Validate and preview the update request without sending it
-F, --file
Records to update from file (use ”-” to read from standard input)
-w, --wait
Wait for the operation to complete before returning

Output formatting flags

--allow-missing-template-keys
If true, ignore errors in templates due to missing fields or map keys. This only applies to golang and jsonpath output formats.
-o, --output
Output format. One of: (json, jsonl, ndjson, jsonpath, jsonpath-as-json, jsonpath-file).
--template
Template string or path to a template file to use when —output=jsonpath, —output=jsonpath-file.
Last modified on May 12, 2026