Open PhpStorm from Terminal/Command line

Open a file/project in PhpStorm using the command line

Solution 1:

Create Command-line launcher
Tools -> Create command line launcher
pstorm filename
pstrom projectname
pstorm

Solution 2:

alias pstorm='open -a /Applications/PhpStorm.app "`pwd`"'
alias pstrom="open -a 'phpstorm.app'"
source .zshrc
pstorm .

Solution 3:

open -a 'phpstorm.app' file-or-folder
https://www.jetbrains.com/help/phpstorm/opening-files-from-command-line.htmlhttps://www.jetbrains.com/help/phpstorm/working-with-the-ide-features-from-command-line.html#standalonehttps://www.jetbrains.com/help/phpstorm/opening-files-from-command-line.html

Posting daily about Python, Laravel