Skip to content

Instantly share code, notes, and snippets.

View clemfromspace's full-sized avatar
🎯
Focusing

Clément Denoix clemfromspace

🎯
Focusing
View GitHub Profile
@kopertop
kopertop / exportAlgoliaSettings.sh
Last active September 15, 2022 11:15
Export all Algolia Index settings
#!/bin/bash
for index in $( algolia indices list --output jsonpath --template="{..name}" ); do
echo "Export ${index}"
algolia settings get ${index} > ${index}.json
# If you have jq installed, you can get pretty formatted JSON output using:
# algolia settings get ${index} | jq "." > ${index}.json
done
# Add the following to automatically commit and push to a repository
# git add *.json
# git commit -a --m "Automatic Settings Export"