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
- Press window key and searc “environment” than click “change system environment vairables”
- Click “environment variables”
- Click “new” and add “PHPSTORM” and your PhpStorm.exe bin path like
C:\Program Files (x86)\JetBrains\PhpStorm 2016.2\bin
- Modify PATH variable if exists or add new one and add
Thats it. You can use
phpstrom in your terminal.
- 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.