How to open a directory in PHPStorm or IntelliJ (or any JetBrains IDE) from the command line?

Use Tools -> Create command line launcher and then you can execute pstorm .


Here's how I got IntelliJ Command-line launcher to work with MAC Sierra (v 10.12.2).

This works with IntelliJ IDEA:

  1. Tools -> Create Command-line Launcher.. enter image description here
  2. Replace 'idea' in the string '/usr/local/bin/idea' with whatever you wish.
    enter image description here (I use 'ij'), so for me its '/usr/local/bin/ij'.
  3. Open your terminal
  4. Navigate to the project/folder you want to open.
  5. Write the chars you wrote after 'bin/' and then '.' enter image description here

    For me its ij .


On OS X: open -a 'phpstorm.app' file-or-folder