Jeremy Luscombe

Copy indices between Algolia apps w/ CLI

Ensure the Algolia CLI is installed

algolia profile add

Add both your profiles, e.g account1, account

algolia objects browse INDEX_NAME > records.json --profile account1

Pull the records locally.

Then upload to second app and index (ensure you change the --profile flag ).

The -F (short for --file) flag in Algolia CLI lets you read from a JSON file.

algolia objects import INDEX_2_NAME -F records.json --profile account2