Open another IntelliJ IDEA project from command line

command-line, intellij-idea

Solution

You can create command-line launcher in IntelliJ IDEA: Tools->Create command line Launcher

This answer can be helpful: https://stackoverflow.com/a/41592203/4191683

Problem

So I am creating a program that can automatically open an IntelliJ IDEA Project (.ipr) from the command line. I have it successfully opening with the following command: ``` Path\To\idea.exe Path\To\ProjectFile\project.ipr ``` However, if a project is already currently open in IntelliJ IDEA, it will not open a new one in a new window. IT is possible to open a new project in a new window by doing File -> Open... But is there a way to do this via a commandprompt argument (maybe some sort of flag or something?)?

Original source

Related problems