How to Deploy a JIRA Plugin on a Standalone Instance Using Command Line?

I am running a dedicated JIRA instance on my server and have created a JIRA plugin using the atlas-mvn tool, which generated a jar file. Normally, I would log into the JIRA user interface and deploy the plugin via the Universal Plugin Manager. I am now looking for a method to directly deploy this plugin through a command line or shell script. Any assistance or example commands that could help achieve this would be greatly appreciated.

Another method I have successfully utilized involves executing a Groovy script through a secured endpoint, typically enabled by a tool like ScriptRunner. This script calls JIRA’s internal plugin manager to deploy the new plugin jar file. With proper authentication and a parameterized file path, the script effectively bypasses manual UPM deployment. Although it requires configuring additional security measures and testing within your environment, it has proven reliable in automating deployments, especially in continuous integration setups where manual intervention is not feasible.

hey, have u tried using the rest api with curl? i ran something like curl -u admin:pass -F [email protected] http://myjirainst/rest/plugins/1.0 and it pushed plugin updates. might work depending on your setup, check details in docs