# Open IntelliJ IDEA from CLI [TOC] --- ```shell open -na "IntelliJ IDEA.app" ``` ## Shell Script For Easier Access Create a file in a directory from the **`$PATH`** environment variable, such as **`/usr/local/bin/`**: ```shell sudo vim /usr/local/bin/idea ``` Enter the following content: ```bash #!/bin/sh open -na "IntelliJ IDEA.app" --args "$@" ``` Make this shell script executable: ```shell sudo chmod a+x /usr/local/bin/idea ``` ## Reference - [Command-line interface | IntelliJ IDEA Documentation](https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html#i8kwgmb_40)