enonic / cli-enonic

GNU General Public License v3.0
41 stars 2 forks source link

Get access to cluster-info from the cmd #279

Open tomanders opened 3 years ago

tomanders commented 3 years ago

Hi, I find myself using the cluster.elasticsearch (https://developer.enonic.com/docs/xp/stable/runtime/statistics#elasticsearch_cluster_health) interface to get basic info like which server is the current master.

It would be great if I could get this information from the CLI, instead of having to drop into the browser for this kind of information.

alansemenov commented 3 years ago

@tomanders Can't you simply use "curl" in your command line to get this kind of info?

sigdestad commented 3 years ago

We're adding a new command "stats" which will return a pretty-formattet result similar to what you get when visiting port 2609.

You can then pass parameters such as 'enonic stats relative/path'. Leaving param emty returns result from root