# Difference between PluginCLI and PluginManager used in Plugin.bat

**URL:** <https://discuss.elastic.co/t/difference-between-plugincli-and-pluginmanager-used-in-plugin-bat/253080>\
**Category:** Elasticsearch\
**Created:** [October 23, 2020, 2:16am UTC](https://discuss.elastic.co/t/difference-between-plugincli-and-pluginmanager-used-in-plugin-bat/253080 "2020-10-23T02:16:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varsha\_Muzumdar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/varsha_muzumdar/32/77741_2.png) [@Varsha\_Muzumdar](https://discuss.elastic.co/u/Varsha_Muzumdar)\
**Post date:** [October 23, 2020, 2:16am UTC](https://discuss.elastic.co/t/difference-between-plugincli-and-pluginmanager-used-in-plugin-bat/253080/1 "2020-10-23T02:16:57Z")

</div>

I am new to ES community and I have been using ES on Windows. I see that some distributions of ElasticSearch plugin.bat reference org.elasticsearch.plugins.PluginManager whereas some others reference org.elasticsearch.plugins.PluginCli. Sample plugin.bat file

```auto
@echo off

setlocal enabledelayedexpansion
setlocal enableextensions

set ES_JAVA_OPTS=--add-opens java.base/sun.security.provider=ALL-UNNAMED %ES_JAVA_OPTS%
set ES_MAIN_CLASS=org.elasticsearch.plugins.PluginCli
set ES_ADDITIONAL_CLASSPATH_DIRECTORIES=lib/tools/plugin-cli
call "%~dp0elasticsearch-cli.bat" ^
  %%* ^
  || goto exit
  

endlocal
endlocal
:exit
exit /b %ERRORLEVEL%

```

What is the difference between these two? Which one is recommended for use in production environment?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 20, 2020, 2:17am UTC](https://discuss.elastic.co/t/difference-between-plugincli-and-pluginmanager-used-in-plugin-bat/253080/2 "2020-11-20T02:17:13Z")

</div>

Closed on November 20, 2020, 2:17am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
