Display differences between two Firestore indexes config files
- Make sure to have the indexes files ready. Refer to Cloud Firestore Index Definition Reference to see how you can export them
- Don't forget to star this repo 😉
npx firestore-indexes-diff --source dev.json --target prod.json
1- Install the library
- npm
npm install -g firestore-indexes-diff
or
- yarn
yarn global add firestore-indexes-diff
2- Execute command
diff-indexes --source dev.json --target prod.json
-
source
: string - Source indexes file path with extension- alias:
s
- required
- alias:
-
target
: string - Target indexes file path with extension- alias:
t
- required
- alias: