How to launch Intellij IDEA from command line

Shaun Thomas

Go to ‘Tools’ menu in Intellij IDEA and click on ‘Create Command-line Launcher…’

Choose a command to add to /user/local/bin. Here I choose idea as command. If you have different versions of Intellij IDEA then it is better to give some suffix to indicate version.

I usually use idea for Ultimate edition and ideacfor Community edition.

Now, suppose your project for e.g. `MyProject` is in ~/git. Then you can open the project in Intellij IDEA by using the command idea MyProject.

If you are inside the project directory then you can open the project using command idea .

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade