title: Intellij - how to make a plugin that can perform IDE actions via a CLI or web service?
body: <p>I need some help getting started making a specific IntelliJ plugin.</p>
  
  <p>I want to make an IntelliJ plugin that makes it so you can launch intelliJ actions from CLI (or from a web service if it's easier).</p>
  
  <p>For example, I'm done building my project with a gradle script... but i want to get it ready in intelliJ too. Right now I have to do this manually with a point-and-clicks. </p>
  
  <p>Instead I want to have this the ability to externally trigger some IntelliJ commands. In my example I would want to fire off these requests from my gradle script: </p>
  
  <ul>
  <li><code>run-intellij-command {project-path} --action refresh-gradle</code> </li>
  <li><code>run-intellij-command {project-path} --action build-project</code> </li>
  <li><code>run-intellij-command {project-path} --action start-debugging --configurationName={configuration-name}</code></li>
  </ul>
  
  <p>Does anyone have an example of how I can get started with this? </p>
  
  <p>Really hoping there is an intellij plugin project that already does something similar like reacting to cli commands or hosts a web service that can be called?</p>
  
  <p>Thanks!</p>
  
  <p>Also created this <a href="https://youtrack.jetbrains.com/issue/IDEA-184885" rel="noreferrer">https://youtrack.jetbrains.com/issue/IDEA-184885</a>
  hoping to see this feature become a reality some day </p>