> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Typesense reindex

> Start and monitor Typesense search reindex jobs from the CLI.

Use the `reindex` command to start a Typesense search reindex on your connected Core instance and check its progress. Requires CLI **1.8.1** or later.

| Command | Alias | Description                  |
| :------ | :---- | :--------------------------- |
| create  | c     | Start a new reindex job      |
| list    | l     | Check current reindex status |

***

## `create`

Trigger a full reindex that reads records from your database and indexes them into Typesense collections.

Run this after deploying a new Typesense instance or when search results are missing data that still exists in Core.

```bash theme={"system"}
blnk reindex create [options]
```

<Icon icon="sliders-horizontal" size={16} color="#808080" className="cli-section-icon" /> **Options**

| Option       | Type    | Description                                                     |
| :----------- | :------ | :-------------------------------------------------------------- |
| `--json`     | boolean | After a successful create, print the full API response as JSON. |
| `-h, --help` | boolean | Show help for this command.                                     |

<Icon icon="list-ordered" size={16} color="#808080" className="cli-section-icon" /> **Usage**

<Steps>
  <Step title="Start reindex">
    Run the command on your connected Core instance:

    ```bash wrap theme={"system"}
    blnk reindex create
    ```
  </Step>

  <Step title="Reindex started">
    <CodeGroup>
      ```text 200 Success icon="circle-check" theme={"system"}
      Reindex started:
        status: pending
        total_records: 0
        processed_records: 0
      ```

      ```text JSON icon="circle-check" theme={"system"}
      {
        "message": "Reindex operation started",
        "progress": {
          "status": "pending",
          "phase": "",
          "total_records": 0,
          "processed_records": 0,
          "started_at": "0001-01-01T00:00:00Z"
        }
      }
      ```
    </CodeGroup>
  </Step>
</Steps>

***

## `list`

Check the current reindex job, including status, phase, record counts, and timestamps.

Poll with `list` while a job is running; when `status` is `completed`, verify search coverage in Typesense if needed.

```bash theme={"system"}
blnk reindex list [options]
```

<Icon icon="sliders-horizontal" size={16} color="#808080" className="cli-section-icon" /> **Options**

| Option       | Type    | Description                                                         |
| :----------- | :------ | :------------------------------------------------------------------ |
| `--json`     | boolean | Print the full API response as JSON instead of a formatted summary. |
| `-h, --help` | boolean | Show help for this command.                                         |

<Icon icon="list-ordered" size={16} color="#808080" className="cli-section-icon" /> **Usage**

<Steps>
  <Step title="Check reindex status">
    Run the command:

    ```bash wrap theme={"system"}
    blnk reindex list
    ```

    <CodeGroup>
      ```text 200 Success icon="circle-check" theme={"system"}
      Reindex status:
        status: completed
        phase: done
        total_records: 181
        processed_records: 181
        started_at: 2026-06-04T19:42:21Z
        completed_at: 2026-06-04T19:42:22Z
      ```

      ```text JSON icon="circle-check" theme={"system"}
      {
        "status": "completed",
        "phase": "done",
        "total_records": 181,
        "processed_records": 181,
        "started_at": "2026-06-04T19:42:21.267309645Z",
        "completed_at": "2026-06-04T19:42:22.644924172Z"
      }
      ```

      ```text wrap No job icon="circle-x" theme={"system"}
      No results found.
      ```
    </CodeGroup>
  </Step>
</Steps>
