blob: 8bd80d831b7c6938cfac111ca2f8ddca2ed9c8a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
title: Copy indices between Algolia apps w/ CLI
description: Copy indices between Algolia apps w/ CLI
tags: ["algolia"]
---
Ensure the [Algolia CLI](https://www.algolia.com/doc/tools/cli/get-started/overview/#install-the-algolia-cli) is installed
```console
algolia profile add
```
Add both your profiles, e.g `account1`, `account`
```console
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.
```console
algolia objects import INDEX_2_NAME -F records.json --profile account2
```
|