# How to get the version of installed plugins via terminal?

**URL:** <https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330>\
**Category:** IntelliJ Platform\
**Created:** [February 10, 2025, 2:32pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330 "2025-02-10T14:32:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![afucher](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/afucher/32/97_2.png) [@afucher](https://platform.jetbrains.com/u/afucher)\
**Post date:** [February 10, 2025, 2:32pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/1 "2025-02-10T14:32:31Z")

</div>

Hi!

I’m working in a script to get some information about IntelliJ installation. I was able to get all plugins installed, looking at the [plugin’s folder](https://www.jetbrains.com/help/idea/directories-used-by-the-ide-to-store-settings-caches-plugins-and-logs.html#plugins-directory).  
Now I want to get the version of the installed plugin, I tried to look to other folders and documentation but didn’t found anything 😕  
Is possible to get the version of the installed plugins, via a script?

EDIT:  
Adding more information, e.g. in VSCode is possible to run `code --list-extensions --show-versions` to get version of installed extensions (plugins) or in the folder it has the version in the name of the plugin folder.

---

<div class="post-metadata">

**Author:** ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)\
**Post date:** [February 10, 2025, 4:27pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/2 "2025-02-10T16:27:04Z")

</div>

Could you please explain your use case? And why you collect this information outside of the IDE?

---

<div class="post-metadata">

**Author:** ![afucher](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/afucher/32/97_2.png) [@afucher](https://platform.jetbrains.com/u/afucher)\
**Post date:** [February 10, 2025, 5:22pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/4 "2025-02-10T17:22:03Z")

</div>

Sure, I’m working in an enterprise solution to get information about dev environment from devs in the company, to understand better tools that are being used, versions, etc…  
So, it is a script that runs by default on users machine. It already exists, I’m now checking how to get those kind of information about IDEs and plugins.

---

<div class="post-metadata">

**Author:** ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)\
**Post date:** [February 11, 2025, 9:19am UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/5 "2025-02-11T09:19:44Z")

</div>

While this is mostly used internally only, this library should help inspecting plugins: [intellij-plugin-verifier/intellij-plugin-structure at master · JetBrains/intellij-plugin-verifier · GitHub](https://github.com/JetBrains/intellij-plugin-verifier/tree/master/intellij-plugin-structure)

This might be interesting as well as an out-of-the-box solution to manage IDEs [JetBrains IDE Services – Elevating Developer Productivity to Enterprise Scale](https://www.jetbrains.com/ide-services/)

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [February 11, 2025, 2:27pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/6 "2025-02-11T14:27:43Z")

</div>

You can also extract the plugins version string from their `META-INF/plugin.xml` file. This will work for most (all?) third-party plugins. For each plugin lib folder find the nameOfThePlugin.jar file (the other jar files are dependencies and, optionally, the searchableOptions jar), then read the `version` from `META-INF/plugin.xml`.

You could also develop a small plugin for that. This plugin would simply export the list of installed plugin.

---

<div class="post-metadata">

**Author:** ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)\
**Post date:** [February 11, 2025, 2:39pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/7 "2025-02-11T14:39:17Z")

</div>

> find the nameOfThePlugin.jar file […]

That is not the true always. The plugin “main” JAR file can have an arbitrary name (and will).

---

<div class="post-metadata">

**Author:** ![afucher](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/afucher/32/97_2.png) [@afucher](https://platform.jetbrains.com/u/afucher)\
**Post date:** [February 11, 2025, 2:40pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/8 "2025-02-11T14:40:59Z")

</div>

thanks! Where I can find those `.jars`?

---

<div class="post-metadata">

**Author:** ![yann.cebron](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/yann.cebron/32/15_2.png) [@yann.cebron](https://platform.jetbrains.com/u/yann.cebron)\
**Post date:** [February 11, 2025, 2:52pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/9 "2025-02-11T14:52:28Z")

</div>

The basic structure is explained here [Plugin Content | IntelliJ Platform Plugin SDK](https://plugins.jetbrains.com/docs/intellij/plugin-content.html)

---

<div class="post-metadata">

**Author:** ![jonathanlermitage.1](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jonathanlermitage.1](https://platform.jetbrains.com/u/jonathanlermitage.1)\
**Post date:** [February 11, 2025, 2:52pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/10 "2025-02-11T14:52:36Z")

</div>

Sure, this is not exactly the name of the plugin, but you can put some intelligence in your code 🙂 Normalize names, filter jars containing a plugin.xml that looks like a JB plugin…

---

<div class="post-metadata">

**Author:** ![chriscarini](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/chriscarini/32/695_2.png) [@chriscarini](https://platform.jetbrains.com/u/chriscarini)\
**Post date:** [March 19, 2025, 4:34am UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/11 "2025-03-19T04:34:53Z")

</div>

@afucher - I’m looking to do something very similar. By chance, is your work/code for this somewhere in OSS? I’d love to take a look and leverage what you’ve done as a starting point/inspiration. 🙏

---

<div class="post-metadata">

**Author:** ![afucher](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/afucher/32/97_2.png) [@afucher](https://platform.jetbrains.com/u/afucher)\
**Post date:** [March 24, 2025, 11:54pm UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/12 "2025-03-24T23:54:44Z")

</div>

Hey @chriscarini , I can do it.. but I need some time to isolate the script from some internal code.

---

<div class="post-metadata">

**Author:** ![chriscarini](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/chriscarini/32/695_2.png) [@chriscarini](https://platform.jetbrains.com/u/chriscarini)\
**Post date:** [March 27, 2025, 5:56am UTC](https://platform.jetbrains.com/t/how-to-get-the-version-of-installed-plugins-via-terminal/330/13 "2025-03-27T05:56:46Z")

</div>

> [@afucher](#):
>
> working in an enterprise solution to get information about dev environment from devs in the company, to understand better tools that are being used, versions, etc…  
> So, it is a script that runs by default on users machine. It already exists, I’m now checking how to get those kind of information about IDEs and plugins.

Totally understand - I’d very much appreciate it, if possible! 🙏
