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
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 !