Export and your records and settings from your Algolia index from the dashboard or the API.
An Algolia index has records and configuration data, including settings, synonyms, and rules.
Exporting your records and configuration can be useful when you need to:
Back up your index.
Track changes to the index configuration (for example, with a version control system).
Apply the same configuration to multiple indices. For example,
in staging and production environments,
or if you use different indices for different geographical regions.
With the Algolia CLI, you can export an index configuration with the
algolia indices config export command.This creates a JSON file that you can import
in the dashboard, for example, for another index.To export your settings, rules, or synonyms individually, use these commands:
Choose what you want to import: Settings, Synonyms, or Rules.
Type IMPORT to confirm and click Import Configuration.
Importing settings replaces all existing index settings with the imported ones.
Synonyms and rules are replaced if a synonym or rule with the same objectID already exists.
Otherwise, new synonyms or rules are added.
To import the configuration of an index with the Algolia CLI,
use the algolia indices config import command.
The command expects a JSON file with "settings", "rules", or "synonyms" keys,
which you can get by exporting an index configuration from the dashboard or with the Algolia CLI.To import settings, rules, or synonyms individually, use these commands: