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
-F, --file
Records to update from file (use ”-” to read from standard input)
-w, --wait
Wait for the operation to complete before returning
I