devouted / elastic-index-manager
About
Installs: 764
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/devouted/elastic-index-manager
Requires
- php: ^8.1
- elasticsearch/elasticsearch: 7.17.*
- symfony/console: 6.4.*
- symfony/dependency-injection: 6.4.*
- symfony/framework-bundle: 6.4.*
This package is auto-updated.
Last update: 2025-12-28 14:46:43 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:
Copy code Devouted\ElasticIndexManager\Command\ElasticIndexManagerCommand: tags: ['console.command']
Command will search for any service that returns a Elasticsearch/Client class: like bellow:
elasticsearch.client.default: public: true class: Elasticsearch\ClientBuilder factory: [ 'Elasticsearch\ClientBuilder', 'fromConfig' ] arguments: - { hosts: [ '%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
run action