1.0.2 • Published 6 months ago

algcopy v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
6 months ago

Algcopy

Copy an index and all its settings between Algolia applications.

Ensure that the destination index does not exist, otherwise the copy will fail.

Getting started

Install globally

npm install -g algcopy

Execute without installation

npx algcopy // Add flags

Example usage

This will copy all records, settings and settings in an index from one app to another

algcopy --app1 <APP1ID> --app2 <APP2ID> --key1 <KEY1> --key2 <KEY2> --index1 sourceIndex --index2 destinationIndex

Commands and flags

Help

Show CLI help information

algcopy help

This uses Algolia's copyIndex method under the hood, which has certain restrictions liste here, namely:

  • You can’t copy an index between two Algolia applications, if the destination index exists.
  • You can’t copy to a destination index that already has replicas.