devouted/elastic-index-manager

About

Maintainers

Package info

github.com/devouted/elastic-index-manager

pkg:composer/devouted/elastic-index-manager

Statistics

Installs: 851

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.1 2026-03-18 20:43 UTC

This package is auto-updated.

Last update: 2026-03-18 20:43:37 UTC


README

This is a simple elastic indexes manager.

Installation

Install the package using Composer:

composer require devouted/elastic-index-manager

Configuration

Add the following configuration to your services.yaml to register the command:

Devouted\ElasticIndexManager\Command\ElasticIndexManagerCommand:
    tags: ['console.command']

Command will search for any service that returns an Elastic\Elasticsearch\Client or Elastic\Elasticsearch\ClientBuilder class, like below:

    elasticsearch.client.default:
        public: true
        class: Elastic\Elasticsearch\ClientBuilder
        factory: [ 'Elastic\Elasticsearch\ClientBuilder', 'create' ]
        calls:
            - [ setHosts, [ [ '%env(ELASTICSEARCH_TRANSPORT)%://%env(ELASTICSEARCH_HOST)%:%env(ELASTICSEARCH_PORT)%' ] ] ]

Usage

Once installed and configured, you can use the command via the Symfony Console to manage your elastic indexes.

bin/console elasticsearch:index:manage

Select connection

image

run action

image2