﻿---
title: assembler index cli command
description: Index the assembled documentation into Elasticsearch. Runs an assembler build with only the Elasticsearch exporter enabled, then streams documents to...
url: https://docs-v3-preview.elastic.dev/elastic/docs-builder/pull/2927/cli/assembler/cmd-index
products:
  - Elastic Docs Builder
---

# assembler index cli command
```bash
docs-builder assembler index [options]
```

Index the assembled documentation into Elasticsearch.

## Options

<definitions>
  <definition term="--endpoint string">
    -es,--endpoint, Elasticsearch endpoint URL. Falls back to env DOCUMENTATION_ELASTIC_URL.
    **Constraints:** must be a http or https URI
  </definition>
  <definition term="--api-key string">
    API key for authentication. Falls back to env DOCUMENTATION_ELASTIC_APIKEY.
  </definition>
  <definition term="--username string">
    Username for basic authentication. Falls back to env DOCUMENTATION_ELASTIC_USERNAME.
  </definition>
  <definition term="--password string">
    Password for basic authentication. Falls back to env DOCUMENTATION_ELASTIC_PASSWORD.
  </definition>
  <definition term="--[no-]ai-enrichment">
    Enable AI enrichment of documents using LLM-generated metadata (enabled by default).
  </definition>
  <definition term="--search-num-threads int">
    Number of search threads for the inference endpoint.
    **Constraints:** between 1 and 128
  </definition>
  <definition term="--index-num-threads int">
    Number of index threads for the inference endpoint.
    **Constraints:** between 1 and 128
  </definition>
  <definition term="--[no-]eis">
    Use the Elastic Inference Service to bootstrap the inference endpoint (enabled by default).
  </definition>
  <definition term="--bootstrap-timeout string">
    How long to wait for the inference endpoint to become ready (e.g. 4m, 90s).
    **Constraints:** duration between "1s" and "60m"
  </definition>
  <definition term="--[no-]force-reindex">
    Force a full reindex, discarding any incremental state.
  </definition>
  <definition term="--buffer-size int">
    Number of documents per bulk request.
    **Constraints:** between 1 and 10000
  </definition>
  <definition term="--max-retries int">
    Number of retry attempts for failed bulk items.
    **Constraints:** between 0 and 20
  </definition>
  <definition term="--[no-]debug-mode">
    Log every Elasticsearch request and response body; append ?pretty to all requests.
  </definition>
  <definition term="--proxy-address string">
    Route requests through this proxy URL.
    **Constraints:** must be a http or https URI
  </definition>
  <definition term="--proxy-username string">
    Proxy server username.
  </definition>
  <definition term="--proxy-password string">
    Proxy server password.
  </definition>
  <definition term="--[no-]disable-ssl-verification">
    Disable SSL certificate validation. Use only in controlled environments.
  </definition>
  <definition term="--certificate-fingerprint string">
    SHA-256 fingerprint of a self-signed server certificate.
  </definition>
  <definition term="--certificate-path string">
    Path to a PEM or DER certificate file for SSL validation.
    **Constraints:** symbolic links not allowed, must exist, extensions: pem, der, crt, cer, supports `~` home expansion
  </definition>
  <definition term="--[no-]certificate-not-root">
    Set when the certificate is an intermediate CA rather than the root.
  </definition>
  <definition term="--environment string">
    Named deployment target; becomes part of the Elasticsearch index name.
  </definition>
  <definition term="-l --log-level enum">
    Minimum log level.
    **Values:** trace, debug, information, warning, error, critical, none
    **Default:** `information`
  </definition>
  <definition term="-c --config-source enum">
    Override the configuration source: local, remote
    **Values:** local, remote, embedded
  </definition>
  <definition term="--[no-]skip-private-repositories">
    Skip cloning private repositories
  </definition>
</definitions>


## Notes

Runs an assembler build with only the Elasticsearch exporter enabled, then streams documents
to the cluster. The index name is derived from the environment name.
Run after assembler build or use instead of it when indexing is the only goal.