nano launch_phpstorm.sh
#!/bin/sh
open -na "Phpstorm.app" --args "$@"
chmod +x .launch_phpstorm.sh
sudo ln -s /Users/{{username}}/.launch_phpstorm.sh /usr/local/bin/pstorm
pstorm [/path/to/project] < optionally add to open >
src: https://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html