Install/Preinstall Plugins in Intellij Programmatically

Install/Preinstall Plugins in Intellij Programmatically

I would like to install some intellij plugins programmatically, after intellij is installed with snap, or prepackage an installation that would include those plugins as well.

I have tried to download the zip from plugins.jetbrains.com and then manually copy it under the plugins folder, but I cannot seem to be able to do this as the dir is "read-only"

root@HP-Pavilion:~# cp -r /home/jim/Desktop/NodeJS /snap/intellij-idea-ultimate/current/plugins/ 
cp: cannot create directory '/snap/intellij-idea-ultimate/current/plugins/NodeJS': Read-only file system

Is this doable?

EDIT: Found this:

3
Elena Rostova
Author

Elena Rostova

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.