Open Maven & Gradle projects in IntelliJ from Terminal

Vicky AV
1 min readSep 10, 2020

Usually we open IntelliJ & import the project from File menu. But how to do the same from your terminal ?

Here is how

Open IntelliJ -> Tools -> Create Command Line Launcher & choose the script name & location & hit OK

Choose the name & where the script has to get created. In above image, idea is the script name

To check if the changes are working

> cd <SOURCE_CODE_FOLDER>// If the project is Maven> idea pom.xml// If the project is Gradle> idea build.gradle

Now the project should get open in IntelliJ

Thats all folks !

--

--