Nope, it should be available out of the box starting from Kibana 6.0 (every new version could change an API a bit, so that it depends on the version you use, but it shouldn't be difficult to figure out).
I would like to run this command but I don't know where.
This query format is for Kibana Dev Console, but every query example in Elastic Docs includes Copy as cURL link, so you can copy request that will work with cURL instead.