- 🛠 PhpStorm CLI Setup on macOS
To open PhpStorm from the terminal using the phpstorm command:
- Add PhpStorm to Your PATH by edit your shell config file (.zshrc for zsh users):
open -e ~/.zshrc- Then add the following line at the end of the file:
export PATH="/Applications/PhpStorm.app/Contents/MacOS:$PATH"- Apply the Changes (In the terminal, reload the config):
source ~/.zshrc- Test the Command (Navigate to any project folder and run):
phpstorm .