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

# fetch-text-data

> List text chunks from a namespace with cursor pagination.

## Overview

List stored text and summary chunks from a **text** namespace. Returns one page at a time (up to 100 items). Use `--next-token` from the previous response to fetch the next page.

## Command

```bash theme={null}
moorcheh fetch-text-data --namespace-name <name> [--limit 100] [--next-token <token>]
```

## API

`GET /namespaces/{namespace_name}/documents/fetch-text-data` — see [Fetch text data](/on-prem/api-references/data/fetch-text-data)

## Options

<ParamField path="--namespace-name" type="string" required>
  Text namespace to read from.
</ParamField>

<ParamField path="--limit" type="integer">
  Page size. Default **100**, maximum **100**.
</ParamField>

<ParamField path="--next-token" type="string">
  Cursor from `pagination.next_token` in a previous response.
</ParamField>

<ParamField path="--base-url" type="string">
  API base URL. Default: `http://localhost:8080`
</ParamField>

## Examples

```bash theme={null}
# First page
moorcheh fetch-text-data --namespace-name my-documents

# Next page
moorcheh fetch-text-data --namespace-name my-documents --next-token eyJ...
```

## Related

* [Upload documents](/on-prem/cli/data/upload-documents)
* [Search](/on-prem/cli/search/query)
