Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.1 KB

commands.md

File metadata and controls

31 lines (25 loc) · 1.1 KB

commands

To understand which commands you have access inside escl, you need to understand what methods your client can call. This is directly bounded to how your client was created in setting up client section and which version are you using.

In practice

If you're using a 6.3.x version of elasticsearch, this means you have access to the all commands from this version including the method exists which you can see in action below.

$ escl _exists \
    --index es_user_v1 \
    --type user \
    --id 1

A few commands are actually namespaces and requires a second subcommand. This is the case of indices.getMapping which can be translate to the command line like

$ escl _indices getMapping --index es_user_v1