Open PhpStorm From the Command Line Using PhpStorm.exe (Windows 10)

Firts of all heavily inspired by Open Sublime Text From the Command Line Using subl.exe (Windows) on scotch.io. You can visit and follow that steps too. Same thing.

Adding PhpStorm.exe to your system environment variables

  1. Press window key and searc “environment” than click “change system environment vairables”
  2. Click “environment variables”
  3. Click “new” and add “PHPSTORM” and your PhpStorm.exe bin path like C:\Program Files (x86)\JetBrains\PhpStorm 2016.2\bin
  4. Modify PATH variable if exists or add new one and add  %PHPSTORM%.

Thats it. You can use phpstrom in your terminal.

Test it

  1. cd path/to/project
  2. phpstorm .
  3. Wait a while.

PhpStorm opens its own bin folder, right? I don’t understand why but the first time you try this happening. You will see that it works as expected, you can try one more time.

I would like to know if you have a solution.

Use cmder and set smaller alias for phpstorm

I highly recomment cmder because I love it. You can easily add aliases when you install cmder with alias pst=phpstorm $* command.