How to view the version of an installed plugin

Hello,

is there an API to show what version of a plugin is installed? Example: prometheus plugin. The only way I’m looking is basically seeing what version is shown in the /usr/local/lib/luarocks/rocks-5.1/kong-prometheus-plugin directory.

Thank you.
Mike

luarocks show kong-prometheus-plugin

Hello @hbagdi

Thank you for the command.

Mike