Download the PHP package hellopablo/esconfig without Composer
On this page you can find all versions of the php package hellopablo/esconfig. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hellopablo/esconfig
More information about hellopablo/esconfig
Files in hellopablo/esconfig
Package esconfig
Short Description A simple tool for managing simple Elasticsearch instances.
License MIT
Informations about the package esconfig
ESConfig
A simple tool for managing simple Elasticsearch instances. The tool looks for a file named .esconfig.json
and uses the definitions in that to create indexes and their mappings. It is also capable of running a warmup script to populate these indexes if needed.
Installation
Install manually by cloning and ensuring the dist/esconfig.phar
binary is in your $PATH
; or use Homebrew:
brew tap hellopablo/utilities
brew install hellopablo/utilities/esconfig
Commands
help
Renders a help view
nuke
Completely erases the cluster, good for starting over. Use with caution, obviously.
reset
Deletes the indexes described in .esconfig.json
and recreates them and their mappings, but with no data
warm
Calls the warmup command described in .esconfig.json
.
Environment
You can define which environment is being used using any of the following methods (in order of specifity):
- As the second parameter, e.g.
esconfig warm production
- Using a file located at the project root called
esconfig.environment
which contains the environment to use - Using the
default_environment
property of.esconfig.json
- The default, which is
DEVELOPMENT
Sample .esconfig.json
file
RoadMap
- [ ] Use symfony console component
- [ ] Use Guzzle or similar